v-restore-user create empty tmp/

This commit is contained in:
dpeca 2019-02-15 02:15:16 +01:00 committed by GitHub
commit 0c387388cb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -755,6 +755,11 @@ if [ "$udir" != 'no' ]; then
fi
fi
# Create tmp/
mkdir -p $HOMEDIR/$user/tmp
chmod 700 $HOMEDIR/$user/tmp
chown -R $user:$user $HOMEDIR/$user/tmp
# Sending mail notification
subj="$user → restore has been completed"
cat $tmpdir/restore.log |$SENDMAIL -s "$subj" $email $notify