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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user