Skip to content

Commit

Permalink
nc-info: warn distro
Browse files Browse the repository at this point in the history
  • Loading branch information
nachoparker committed Nov 27, 2017
1 parent 58d4ca6 commit 6c7cd4b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions etc/nextcloudpi-config.d/nc-info.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ configure()

DNSMASQ_ON="$( grep "^ACTIVE_=" /usr/local/etc/nextcloudpi-config.d/dnsmasq.sh | cut -d'=' -f2 )"

grep -q "distribution|.*bian GNU/Linux 9" <<<"$OUT" || \
echo -e "\nYou are using an unsupported distro release. Please upgrade to latest Debian/Raspbian"

[[ $DNSMASQ_ON != "yes" ]] && \
grep -q "NAT loopback|no" <<<"$OUT" && \
echo -e "\nYou should enable dnsmasq to use your domain inside home"
Expand Down

0 comments on commit 6c7cd4b

Please sign in to comment.