mirror of
https://github.com/YunoHost-Apps/hubzilla_ynh.git
synced 2024-09-03 19:26:21 +02:00
35 lines
993 B
Bash
Executable file
35 lines
993 B
Bash
Executable file
#!/bin/bash
|
|
|
|
source .fonctions # Charge les fonctions génériques habituellement utilisées dans le script
|
|
|
|
# Récupère les infos de l'application.
|
|
app=$YNH_APP_INSTANCE_NAME
|
|
|
|
# Source app helpers
|
|
source /usr/share/yunohost/helpers
|
|
|
|
domain=$(ynh_app_setting_get $app domain)
|
|
db_user=$(ynh_app_setting_get $app db_user)
|
|
|
|
REMOVE_BDD $db_user # Suppression de la base de donnée et de l'utilisateur associé.
|
|
|
|
SECURE_REMOVE '/var/www/$app' # Suppression du dossier de l'application
|
|
|
|
REMOVE_NGINX_CONF # Suppression de la configuration nginx
|
|
|
|
REMOVE_FPM_CONF # Suppression de la configuration du pool php-fpm
|
|
|
|
# Remove poller cron job
|
|
sudo rm -f /etc/cron.d/poller-cron
|
|
|
|
# Restore php.ini as it was before installing hubzilla
|
|
#sudo sed -i 's/,,/pcntl_exec/g' /etc/php5/fpm/php.ini
|
|
|
|
# Reload services after cleaning
|
|
sudo service php5-fpm reload
|
|
sudo service nginx reload
|
|
|
|
# Régénère la configuration de SSOwat
|
|
sudo yunohost app ssowatconf
|
|
|
|
echo -e "\e[0m" # Restore normal color
|