From 0c387388cbee0407740924d7f9f64dcb4e0986f5 Mon Sep 17 00:00:00 2001 From: dpeca Date: Fri, 15 Feb 2019 02:15:16 +0100 Subject: [PATCH] v-restore-user create empty tmp/ --- bin/v-restore-user | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bin/v-restore-user b/bin/v-restore-user index 55e29e18..d48c01d3 100755 --- a/bin/v-restore-user +++ b/bin/v-restore-user @@ -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