From 2c877388778ef4cad21b644bd4307f70fdc9cb83 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Wed, 13 Mar 2019 13:27:34 +0100 Subject: [PATCH] Fix ifs related to ynh_service_enabled --- conf/ynh-hotspot | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/conf/ynh-hotspot b/conf/ynh-hotspot index f6c6283..3de7726 100644 --- a/conf/ynh-hotspot +++ b/conf/ynh-hotspot @@ -320,7 +320,7 @@ case "$1" in start) if is_running; then echo "Already started" - elif [ "${ynh_service_enabled}" -eq 0 ]; then + elif [ "${ynh_service_enabled}" != "enabled" ]; then echo "Disabled service" else echo "[hotspot] Starting..." @@ -469,7 +469,7 @@ case "$1" in status) exitcode=0 - if [ "${ynh_service_enabled}" -eq 0 ]; then + if [ "${ynh_service_enabled}" != "enabled" ]; then echo "[ERR] Hotspot Service disabled" exitcode=1 fi