We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ae94595 + 8a8899e commit 4885d61Copy full SHA for 4885d61
bin/v-restore-user
@@ -2,7 +2,7 @@
2
# info: restore user
3
# options: USER BACKUP [WEB] [DNS] [MAIL] [DB] [CRON] [UDIR] [NOTIFY]
4
#
5
-# The function for resotring user from backup.
+# The function for restoring user from backup.
6
7
8
#----------------------------------------------------------#
@@ -399,6 +399,9 @@ if [ "$web" != 'no' ] && [ ! -z "$WEB_SYSTEM" ]; then
399
fi
400
401
# Restoring web domain data
402
+ if [ -d "$HOMEDIR/$user/web/$domain/public_html" ]; then
403
+ rm -rf $HOMEDIR/$user/web/$domain/public_html/*
404
+ fi
405
tar -xzpf $tmpdir/web/$domain/domain_data.tar.gz \
406
-C $HOMEDIR/$user/web/$domain/
407
if [ "$?" -ne 0 ]; then
0 commit comments