Skip to content

Commit 1e60d3e

Browse files
authored
v-restore-user create empty tmp/
1 parent ae6674c commit 1e60d3e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

bin/v-restore-user

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -747,6 +747,11 @@ if [ "$udir" != 'no' ]; then
747747
fi
748748
fi
749749

750+
# Create tmp/
751+
mkdir -p $HOMEDIR/$user/tmp
752+
chmod 700 $HOMEDIR/$user/tmp
753+
chown -R $user:$user $HOMEDIR/$user/tmp
754+
750755
# Sending mail notification
751756
subj="$user → restore has been completed"
752757
cat $tmpdir/restore.log |$SENDMAIL -s "$subj" $email $notify

0 commit comments

Comments
 (0)