mirror of
https://github.com/ZeJMaN/guacamole_ynh.git
synced 2025-06-07 13:25:30 +02:00
add remove script
This commit is contained in:
parent
b257c12d77
commit
64fc099aea
24
scripts/remove
Normal file
24
scripts/remove
Normal file
@ -0,0 +1,24 @@
|
||||
#!/bin/bash
|
||||
|
||||
# See comments in install script
|
||||
app=$YNH_APP_INSTANCE_NAME
|
||||
|
||||
# Source YunoHost helpers
|
||||
. /usr/share/yunohost/helpers
|
||||
|
||||
# Retrieve app settings
|
||||
domain=$(ynh_app_setting_get "$app" domain)
|
||||
|
||||
|
||||
# stop guacamole & jetty
|
||||
sudo /etc/init.d/guacd stop
|
||||
sudo service jetty8 stop
|
||||
|
||||
# uninstall jetty & guacamole dependences
|
||||
sudo apt-get purge jetty8 libjetty-extra -y -qq
|
||||
sudo apt-get purge `cat /etc/yunohost/apps/guacamole/src_dep.lst`
|
||||
sudo apt-get autoremove --purge -y -qq
|
||||
rm -rf /etc/guacamole
|
||||
rm -rf /opt/guacamole
|
||||
rm -rf /etc/nginx/conf.d/$domain.d/$app.conf
|
||||
sudo service nginx reload
|
Loading…
x
Reference in New Issue
Block a user