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

During upgrade : make sure that the yunohost service has a description and need-lock enabled

This commit is contained in:
Alexandre Aubin 2019-02-18 01:07:31 +01:00 committed by Keoma Brun
parent a3536a3845
commit 440662a956

View file

@ -52,4 +52,7 @@ if [[ -z $(ynh_app_setting_get $app ip6_firewall) ]]; then
ynh_app_setting_set "${app}" ip6_firewall "${ip6_firewall}" ynh_app_setting_set "${app}" ip6_firewall "${ip6_firewall}"
fi fi
# Make sure that the yunohost service has a description and need-lock enabled
yunohost service remove ynh-hotspot
yunohost service add ynh-hotspot --description "creates a Wi-Fi access point" --need_lock
yunohost service start ynh-hotspot yunohost service start ynh-hotspot