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