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:40 +01:00
parent 2f77fb4b1a
commit 457f023e09
7 changed files with 418 additions and 273 deletions

View File

@@ -6,7 +6,15 @@ sudo yunohost service remove ynh-hotspot
sudo rm -f /etc/init.d/ynh-hotspot
# Remove confs
sudo rm -f /etc/hostapd/hostapd.conf /etc/radvd.conf /etc/dhcp/dhcpd.conf
sudo rm -f /etc/hostapd/hostapd.conf{.tpl,} /etc/radvd.conf{.tpl,} /etc/dhcp/dhcpd.conf{.tpl,}
# Restart vpnclient service if installed to set the IPv6 address
# A new start will fix the address without unsetting all stuff
sudo yunohost app list -f vpnclient --json | grep -q '"installed": true'
if [ "$?" -eq 0 ]; then
sudo yunohost service start ynh-vpnclient
fi
# Remove packets
# The yunohost policy is currently to not uninstall packets (dependency problems)