Parcourir la source

Fix ifs related to ynh_service_enabled

Alexandre Aubin il y a 6 ans
Parent
commit
2c87738877
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      conf/ynh-hotspot

+ 2 - 2
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