Use systemctl helper to avoid deadlocks with ynh 2.7 and check path avaibility with no deprecated method

This commit is contained in:
Julien Vaubourg
2017-08-30 14:30:14 +02:00
parent b125c82a8a
commit 5ee291480d
4 changed files with 47 additions and 7 deletions

View File

@@ -12,6 +12,7 @@ path=$(ynh_setting hotspot path)
wifi_ssid=$(ynh_setting hotspot wifi_ssid)
wifi_passphrase=$(ynh_setting hotspot wifi_passphrase)
source ./helpers
source ./prerequisites
if dpkg -l firmware-linux-nonfree &> /dev/null; then
@@ -40,6 +41,6 @@ if [ -z "$(ynh_setting hotspot ip6_firewall)" ]; then
sudo yunohost app setting hotspot ip6_firewall -v "${ip6_firewall}"
fi
sudo systemctl start ynh-hotspot
ynh_systemctl start ynh-hotspot
exit 0