Skip to content

Commit a2406c7

Browse files
authored
[Fix] hestiacp#1505 custom docroot not restoring (hestiacp#1507)
* Fix hestiacp#1505
1 parent d858b1a commit a2406c7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bin/v-restore-user

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ if [ "$web" != 'no' ] && [ ! -z "$WEB_SYSTEM" ]; then
203203
echo -e "$(date "+%F %T") $domain" |tee -a $tmpdir/restore.log
204204

205205
# Cleanup previous domain keys
206-
unset -v DOMAIN IP IP6 ALIAS TPL SSL SSL_HOME LETSENCRYPT FTP_USER FTP_MD5 BACKEND PROXY PROXY_EXT STATS STATS_USER STATS_CRYPT U_DISK
206+
unset -v DOMAIN IP IP6 ALIAS TPL SSL SSL_HOME LETSENCRYPT FTP_USER FTP_MD5 BACKEND PROXY PROXY_EXT STATS STATS_USER STATS_CRYPT U_DISK CUSTOM_DOCROOT CUSTOM_PHPROOT
207207

208208
# Checking domain existance
209209
check_config=$(grep "DOMAIN='$domain'" $USER_DATA/web.conf)
@@ -302,6 +302,7 @@ if [ "$web" != 'no' ] && [ ! -z "$WEB_SYSTEM" ]; then
302302

303303
# Merging web.conf keys
304304
str="DOMAIN='$domain' IP='$IP' IP6='$IP6' ALIAS='$ALIAS'"
305+
str="$str CUSTOM_DOCROOT='$CUSTOM_DOCROOT' CUSTOM_PHPROOT='$CUSTOM_PHPROOT' IP='$IP' IP6='$IP6' ALIAS='$ALIAS'"
305306
str="$str TPL='$TPL' SSL='$SSL' SSL_HOME='$SSL_HOME'"
306307
str="$str LETSENCRYPT='$LETSENCRYPT' FTP_USER='$FTP_USER'"
307308
str="$str FTP_MD5='$FTP_MD5' BACKEND='$BACKEND' PROXY='$PROXY'"

0 commit comments

Comments
 (0)