2015-03-19 20:49:50 +01:00
|
|
|
#!/bin/bash
|
|
|
|
app=lutim
|
|
|
|
|
|
|
|
domain=$(sudo yunohost app setting $app domain)
|
2015-03-26 13:07:01 +01:00
|
|
|
|
|
|
|
# Arrêt de lutim
|
2015-03-19 20:49:50 +01:00
|
|
|
sudo service lutim stop
|
2015-03-26 13:07:01 +01:00
|
|
|
|
|
|
|
# Suppression du dossier
|
|
|
|
sudo rm -rf /var/www/$app
|
|
|
|
|
|
|
|
# Suppression de la configuration nginx
|
2015-03-19 20:49:50 +01:00
|
|
|
sudo rm -f /etc/nginx/conf.d/$domain.d/$app.conf
|
2015-03-26 13:07:01 +01:00
|
|
|
|
|
|
|
# Suppression des fichiers init
|
2015-03-19 20:49:50 +01:00
|
|
|
sudo rm -f /etc/default/lutim
|
2015-03-26 13:07:01 +01:00
|
|
|
sudo rm -f /etc/init.d/lutim
|
|
|
|
sudo update-rc.d -f lutim remove
|
|
|
|
|
|
|
|
# Retirer le cron
|
|
|
|
sudo rm -f /etc/cron.d/$app
|
|
|
|
|
|
|
|
# Remove lutim service in ynh panel
|
|
|
|
sudo yunohost service remove lutim
|
|
|
|
|
|
|
|
# Suppression des log
|
|
|
|
sudo rm -r /var/log/$app/
|
|
|
|
|
|
|
|
# Reload Nginx and regenerate SSOwat conf
|
|
|
|
sudo service nginx reload
|
|
|
|
sudo yunohost app ssowatconf
|