Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornachoparker <nacho@ownyourbits.com>2017-11-25 14:14:40 +0300
committernachoparker <nacho@ownyourbits.com>2017-11-25 14:14:40 +0300
commit5d7188e818add00884b205e8afb16fe0afab9c5c (patch)
tree44e0fb1143c1be3a2c0b6c0652cc068d7927a225
parentaae2b68dee1a2c0529a790249bd2321722337bc6 (diff)
dnsmasq: improve outputv0.37.4
-rw-r--r--etc/nextcloudpi-config.d/dnsmasq.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/etc/nextcloudpi-config.d/dnsmasq.sh b/etc/nextcloudpi-config.d/dnsmasq.sh
index b4ce9cd0..6d82d4c9 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