mirror of
https://github.com/YunoHost-Apps/hotspot_ynh.git
synced 2024-09-03 19:25:53 +02:00
Fix ifs related to ynh_service_enabled
This commit is contained in:
parent
b909ba3b9b
commit
2c87738877
1 changed files with 2 additions and 2 deletions
|
@ -320,7 +320,7 @@ case "$1" in
|
||||||
start)
|
start)
|
||||||
if is_running; then
|
if is_running; then
|
||||||
echo "Already started"
|
echo "Already started"
|
||||||
elif [ "${ynh_service_enabled}" -eq 0 ]; then
|
elif [ "${ynh_service_enabled}" != "enabled" ]; then
|
||||||
echo "Disabled service"
|
echo "Disabled service"
|
||||||
else
|
else
|
||||||
echo "[hotspot] Starting..."
|
echo "[hotspot] Starting..."
|
||||||
|
@ -469,7 +469,7 @@ case "$1" in
|
||||||
status)
|
status)
|
||||||
exitcode=0
|
exitcode=0
|
||||||
|
|
||||||
if [ "${ynh_service_enabled}" -eq 0 ]; then
|
if [ "${ynh_service_enabled}" != "enabled" ]; then
|
||||||
echo "[ERR] Hotspot Service disabled"
|
echo "[ERR] Hotspot Service disabled"
|
||||||
exitcode=1
|
exitcode=1
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue