Browse Source

v-restore-user create empty tmp/

dpeca 7 years ago
parent
commit
1e60d3e52f
1 changed files with 5 additions and 0 deletions
  1. 5 0
      bin/v-restore-user

+ 5 - 0
bin/v-restore-user

@@ -747,6 +747,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