The service is now based on yunohost settings, allowing to update the setup though the web interface with yunohost app setting commands

This commit is contained in:
Julien VAUBOURG
2014-11-09 00:40:01 +01:00
parent 2fed2981cd
commit b6392cc949
5 changed files with 182 additions and 70 deletions

View File

@@ -28,10 +28,9 @@ sudo rm -rf /var/www/vpnadmin/
sudo userdel -f vpnadmin
# Restart hotspot service if installed to change NAT configuration
# A new start will fix the interface without unsetting all stuff
sudo yunohost app list -f hotspot --json | grep -q '"installed": true'
if [ "$?" -eq 0 ]; then
sleep 2
sudo yunohost service stop ynh-hotspot
sudo yunohost service start ynh-hotspot
fi