remove 731 B

123456789101112131415161718192021222324252627
  1. #!/bin/bash
  2. # The End
  3. sudo yunohost service stop ynh-vpnclient
  4. sudo yunohost service remove ynh-vpnclient
  5. sudo rm -f /etc/init.d/ynh-vpnclient
  6. # Remove confs
  7. sudo rm -f /etc/openvpn/client.conf*
  8. # Remove certificates
  9. sudo rm -rf /etc/openvpn/keys/
  10. # Restart hotspot service if installed to change NAT configuration
  11. sudo yunohost app list -f hotspot --json | grep -q '"installed": true'
  12. if [ "$?" -eq 0 ]; then
  13. sleep 2
  14. sudo yunohost service stop ynh-hotspot
  15. sudo yunohost service start ynh-hotspot
  16. fi
  17. # Remove packets
  18. # The yunohost policy is currently to not uninstall packets (dependency problems)
  19. ## sudo apt-get --assume-yes --force-yes remove openvpn
  20. ## sudo apt-get --assume-yes --force-yes remove sipcalc
  21. exit 0