Fix install and remove

This commit is contained in:
Julien VAUBOURG
2014-11-05 19:50:30 +01:00
parent de71fd2c81
commit de2ae1d5f7
2 changed files with 12 additions and 9 deletions

View File

@@ -1,16 +1,19 @@
#!/bin/bash
# The End
sudo yunohost service stop ynh-hotspot
sudo yunohost service remove ynh-hotspot
sudo rm -f /etc/init.d/ynh-hotspot
sudo yunohost service stop ynh-vpnclient
sudo yunohost service remove ynh-vpnclient
sudo rm -f /etc/init.d/ynh-vpnclient
# Remove confs
sudo rm -rf /etc/hostapd/ /etc/radvd.conf /etc/dhcp/dhcpd.conf
sudo rm -f /etc/openvpn/client.conf*
# Remove certificates
sudo rm -rf /etc/openvpn/keys/
# Remove packets
# The yunohost policy is currently to not uninstall packets (dependency problems)
## sudo apt-get --assume-yes --force-yes remove hostapd radvd isc-dhcp-server iptables
## sudo apt-get --assume-yes --force-yes remove openvpn
## sudo apt-get --assume-yes --force-yes remove sipcalc
exit 0