Fixing a lot of stuff
This commit is contained in:
@@ -11,6 +11,14 @@ sudo rm -f /etc/openvpn/client.conf*
|
||||
# Remove certificates
|
||||
sudo rm -rf /etc/openvpn/keys/
|
||||
|
||||
# Restart hotspot service if installed to change NAT configuration
|
||||
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
|
||||
|
||||
# Remove packets
|
||||
# The yunohost policy is currently to not uninstall packets (dependency problems)
|
||||
## sudo apt-get --assume-yes --force-yes remove openvpn
|
||||
|
Reference in New Issue
Block a user