summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2019-12-06 17:34:53 -0600
committerJohn Klug <john.klug@multitech.com>2019-12-06 17:34:53 -0600
commit7f68a2cd981cc9d6a8a2b0a345765d3f22197110 (patch)
tree2c7f233470dd5a4c6004d1728054403ca29711d1
parent208a0fa74c95fb04da1a7954c521d368612e322b (diff)
downloadcommissioning-7f68a2cd981cc9d6a8a2b0a345765d3f22197110.tar.gz
commissioning-7f68a2cd981cc9d6a8a2b0a345765d3f22197110.tar.bz2
commissioning-7f68a2cd981cc9d6a8a2b0a345765d3f22197110.zip
Print correct message when commissioning is disabled
-rwxr-xr-xetc/init.d/commission3
-rwxr-xr-xetc/init.d/commission-php-fpm2
2 files changed, 3 insertions, 2 deletions
diff --git a/etc/init.d/commission b/etc/init.d/commission
index b9f8174..7b1b7aa 100755
--- a/etc/init.d/commission
+++ b/etc/init.d/commission
@@ -33,7 +33,8 @@ fi
case "$1" in
start)
if [ "$ENABLED" != "yes" ]; then
- echo "$NAME: disabled in /etc/default"
+ echo "$NAME: disabled:"
+ echo "$PASSWORDS"
exit
fi
echo -n "Starting $DESC: "
diff --git a/etc/init.d/commission-php-fpm b/etc/init.d/commission-php-fpm
index 6867177..2f18fbc 100755
--- a/etc/init.d/commission-php-fpm
+++ b/etc/init.d/commission-php-fpm
@@ -57,7 +57,7 @@ case "$1" in
start)
[[ -f /etc/default/commission ]] && . /etc/default/commission
if [[ $ENABLED != "yes" ]]; then
- echo "$NAME: disabled in /etc/default"
+ echo "$NAME: disabled in /run/mt-commission"
exit
fi