mirror of
https://github.com/myvesta/vesta
synced 2025-08-19 13:01:52 -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
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Create tmp/
|
||||||
|
mkdir -p $HOMEDIR/$user/tmp
|
||||||
|
chmod 700 $HOMEDIR/$user/tmp
|
||||||
|
chown -R $user:$user $HOMEDIR/$user/tmp
|
||||||
|
|
||||||
# Sending mail notification
|
# Sending mail notification
|
||||||
subj="$user → restore has been completed"
|
subj="$user → restore has been completed"
|
||||||
cat $tmpdir/restore.log |$SENDMAIL -s "$subj" $email $notify
|
cat $tmpdir/restore.log |$SENDMAIL -s "$subj" $email $notify
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue