mirror of
https://github.com/YunoHost-Apps/lutim_ynh.git
synced 2024-09-03 19:36:24 +02:00
31 lines
647 B
Bash
31 lines
647 B
Bash
#!/bin/bash
|
|
app=lutim
|
|
|
|
domain=$(sudo yunohost app setting $app domain)
|
|
|
|
# Arrêt de lutim
|
|
sudo service lutim stop
|
|
|
|
# Suppression du dossier
|
|
sudo rm -rf /var/www/$app
|
|
|
|
# Suppression de la configuration nginx
|
|
sudo rm -f /etc/nginx/conf.d/$domain.d/$app.conf
|
|
|
|
# Suppression des fichiers init
|
|
sudo rm -f /etc/default/lutim
|
|
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
|