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 5e1e7c5 + 4dc750a commit 571a6b0Copy full SHA for 571a6b0
bin/v-change-sys-ip-nat
@@ -70,7 +70,9 @@ fi
70
if [ ! -z "$old" ] && [ ! -z "$DNS_SYSTEM" ]; then
71
for user in $($HESTIA/bin/v-list-sys-users plain); do
72
sed -i "s/$old/$new/" $HESTIA/data/users/$user/dns.conf
73
- sed -i "s/$old/$new/" $HESTIA/data/users/$user/dns/*.conf
+ if ls $HESTIA/data/users/$user/dns/*.conf 1> /dev/null 2>&1; then
74
+ sed -i "s/$old/$new/" $HESTIA/data/users/$user/dns/*.conf
75
+ fi
76
$BIN/v-rebuild-dns-domains $user no
77
done
78
$BIN/v-restart-dns $restart
0 commit comments