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