File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -768,6 +768,7 @@ if [ "$udir" != 'no' ]; then
768768 echo -e " $( date " +%F %T" ) $user_dir " | tee -a $tmpdir /restore.log
769769 tar xf " $BACKUP /$backup " -C " $tmpdir " --no-wildcards " ./user_dir/$user_dir .tar.gz"
770770 if [ " $? " -ne 0 ]; then
771+ rm -rf $tmpdir
771772 error=" Can't unpack $user_dir user dir container"
772773 echo " $error " | $SENDMAIL -s " $subj " $email $notify
773774 sed -i " / $user /d" $HESTIA /data/queue/backup.pipe
@@ -781,6 +782,7 @@ if [ "$udir" != 'no' ]; then
781782 cmdstatus=" $? "
782783 chown root:root " $HOMEDIR /$user "
783784 if [ " $cmdstatus " -ne 0 ]; then
785+ rm -rf $tmpdir
784786 error=" Can't unpack $user_dir user dir container"
785787 echo " $error " | $SENDMAIL -s " $subj " $email $notify
786788 sed -i " / $user /d" $HESTIA /data/queue/backup.pipe
You can’t perform that action at this time.
0 commit comments