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>2018-12-10 04:08:33 +0300
committernachoparker <nacho@ownyourbits.com>2019-01-05 04:14:52 +0300
commitd5c1f0058b43c22ebb132f51df0ea144fbd927ec (patch)
treeb826d4fefb22afc2513a57e9464a486b9fd24dcc /bin/ncp-suggestions
parent21fee19452410817d26b6caebd0a91b5968b0a44 (diff)
rework to use JSON based cfg and more
Diffstat (limited to 'bin/ncp-suggestions')
-rw-r--r--bin/ncp-suggestions4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/ncp-suggestions b/bin/ncp-suggestions
index 77559732..5f20bd85 100644
--- a/bin/ncp-suggestions
+++ b/bin/ncp-suggestions
@@ -14,12 +14,12 @@
OUT="$@"
-DNSMASQ_ON="$( grep "^ACTIVE_=" /usr/local/etc/ncp-config.d/dnsmasq.sh | cut -d'=' -f2 )"
+source /usr/local/etc/library.sh
grep -q "distribution|.*bian GNU/Linux 9,*" <<<"$OUT" || \
echo -e "You are using an unsupported distro release. Please upgrade to latest Debian/Raspbian"
-[[ $DNSMASQ_ON != "yes" ]] && \
+is_active_app dnsmasq && \
grep -q "NAT loopback|no" <<<"$OUT" && \
echo -e "\nYou should enable dnsmasq to use your domain inside home"