Skip to content

Commit 8404771

Browse files
authored
Update v-backup-user (hestiacp#3434)
Fixed a bug where it was excluding ALL the folders in a listed domain, not just specified ones with stuff like: foo.com:public_html Instead of just excluding public_html, it ignored the whole domain. The wildcards worked as expected: *:public_html
1 parent 08fd4b5 commit 8404771

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
@@ -245,7 +245,7 @@ if [ -n "$WEB_SYSTEM" ] && [ "$WEB" != '*' ]; then
245245
# Parsing domain exclusions
246246
conf="$USER_DATA/web.conf"
247247
for domain in $(search_objects 'web' 'SUSPENDED' "*" 'DOMAIN'); do
248-
exclusion=$(echo -e "$WEB" | tr ',' '\n' | grep "^$domain\|\*$")
248+
exclusion=$(echo -e "$WEB" | tr ',' '\n' | grep "^$domain$\|^\*$")
249249
if [ -z "$exclusion" ]; then
250250
web_list="$web_list $domain"
251251
else

0 commit comments

Comments
 (0)