Avoid changing DNS during install if bind is not installed

This commit is contained in:
dpeca 2019-08-26 21:56:58 +02:00 committed by GitHub
commit b1b47a2dd6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1413,9 +1413,11 @@ fi
$VESTA/bin/v-add-domain admin $servername
check_result $? "can't create $servername domain"
# Adding ns1 and ns2 A records
/usr/local/vesta/bin/v-add-dns-record 'admin' "$servername" 'ns1' 'A' "$pub_ip"
/usr/local/vesta/bin/v-add-dns-record 'admin' "$servername" 'ns2' 'A' "$pub_ip"
if [ "$named" = 'yes' ]; then
# Adding ns1 and ns2 A records
/usr/local/vesta/bin/v-add-dns-record 'admin' "$servername" 'ns1' 'A' "$pub_ip"
/usr/local/vesta/bin/v-add-dns-record 'admin' "$servername" 'ns2' 'A' "$pub_ip"
fi
if [ "$release" -eq 10 ]; then
if [ -f "/etc/php/7.3/fpm/pool.d/$servername.conf" ]; then