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