From 5d7188e818add00884b205e8afb16fe0afab9c5c Mon Sep 17 00:00:00 2001 From: nachoparker Date: Sat, 25 Nov 2017 12:14:40 +0100 Subject: [PATCH] dnsmasq: improve output --- etc/nextcloudpi-config.d/dnsmasq.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/etc/nextcloudpi-config.d/dnsmasq.sh b/etc/nextcloudpi-config.d/dnsmasq.sh index b4ce9cd0d..6d82d4c9b 100644 --- a/etc/nextcloudpi-config.d/dnsmasq.sh +++ b/etc/nextcloudpi-config.d/dnsmasq.sh @@ -52,7 +52,12 @@ EOF configure() { - [[ $ACTIVE_ != "yes" ]] && { service dnsmasq stop; update-rc.d dnsmasq disable; return; } + [[ $ACTIVE_ != "yes" ]] && { + service dnsmasq stop + update-rc.d dnsmasq disable + echo "dnmasq disabled" + return + } local IFACE=$( ip r | grep "default via" | awk '{ print $5 }' ) local IP=$( ip a show dev "$IFACE" | grep global | grep -oP '\d{1,3}(.\d{1,3}){3}' | head -1 ) @@ -80,6 +85,7 @@ EOF cd /var/www/nextcloud sudo -u www-data php occ config:system:set trusted_domains 2 --value=$DOMAIN_ sudo -u www-data php occ config:system:set overwrite.cli.url --value=https://$DOMAIN_ + echo "dnsmasq enabled" } # License