mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 10:37:42 -07:00
v-restore-user create empty tmp/
This commit is contained in:
parent
f4749743ce
commit
0c387388cb
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue