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:
parent
ee19798159
commit
4bbf247394
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue