Skip to content

Commit eda332a

Browse files
committed
Do not backup ssl proxy config when not enabled in web domain
1 parent 59fe4d7 commit eda332a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/v-backup-user

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ if [ ! -z "$WEB_SYSTEM" ] && [ "$WEB" != '*' ]; then
184184
fi
185185

186186
# Backup ssl proxy config
187-
if [ ! -z "$PROXY_SYSTEM" ] && [ "$SSL" = 'yes' ]; then
187+
if [ ! -z "$PROXY_SYSTEM" ] && [ ! -z "$PROXY" ] && [ "$SSL" = 'yes' ]; then
188188
if [ -e "$HOMEDIR/$user/conf/web/$domain/$PROXY_SYSTEM.ssl.conf" ]; then
189189
cp $HOMEDIR/$user/conf/web/$domain/$PROXY_SYSTEM.ssl.conf* conf/
190190
elif [ -e "$HOMEDIR/$user/conf/web/$domain.$PROXY_SYSTEM.ssl.conf" ]; then

0 commit comments

Comments
 (0)