From 74746016fc53757b43c521ca041c6e27ae967057 Mon Sep 17 00:00:00 2001 From: Gilles Mouchet Date: Sat, 29 Jun 2024 15:59:34 +0200 Subject: [PATCH] fix inst-rasp.sh --- inst-raps.sh | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/inst-raps.sh b/inst-raps.sh index 0089195..974988a 100755 --- a/inst-raps.sh +++ b/inst-raps.sh @@ -84,11 +84,13 @@ function delete_folder() { } #----------------------------------------------------------------------------- -# Clean upset timezone +# cleanup /tmp folder (if during the last execution the script ended with +# an error) #----------------------------------------------------------------------------- -printInfo "CleanUp" +printInfo "Cleanup" delete_folder "/tmp/yumupd" delete_folder "/tmp/hostsupd" +printSuccess "Cleanup completed" #----------------------------------------------------------------------------- # install rootfs-expand @@ -121,10 +123,6 @@ else # printSuccess "Root partition extended" fi -#----------------------------------------------------------------------------- -# cleanup /tmp/file -#----------------------------------------------------------------------------- - #----------------------------------------------------------------------------- # install package python #----------------------------------------------------------------------------- @@ -209,11 +207,12 @@ printSuccess "Role updated successfully" #printSuccess "Ansible playbook finished" #----------------------------------------------------------------------------- -# Clean upset timezone +# Cleanup /tmp folder #----------------------------------------------------------------------------- -printInfo "CleanUp" +printInfo "Cleanup" delete_folder "/tmp/yumupd" delete_folder "/tmp/hostsupd" +printSuccess "Cleanup completed" #----------------------------------------------------------------------------- # set timezone