1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/hotspot_ynh.git synced 2024-09-03 19:25:53 +02:00

fix service enabled

This commit is contained in:
HgO 2023-08-21 19:27:40 +02:00
parent ee19798159
commit 4bbf247394

View file

@ -248,8 +248,8 @@ start)
if is_running; then if is_running; then
echo "Already started" echo "Already started"
exit 0 exit 0
elif [[ "${service_enabled}" != "enabled" ]]; then elif [[ "${service_enabled}" -eq 0 ]]; then
echo "Not starting because hotspod service is disabled" echo "Not starting because hotspot service is disabled"
exit 1 exit 1
fi fi
@ -327,7 +327,7 @@ restart)
status) status)
exitcode=0 exitcode=0
if [[ "${service_enabled}" != "enabled" ]]; then if [[ "${service_enabled}" -eq 0 ]]; then
echo "[FAIL] Hotspot Service disabled" echo "[FAIL] Hotspot Service disabled"
exit 1 exit 1
fi fi