2015-05-31 13:46:25 +02:00
|
|
|
#!/bin/bash
|
2017-02-02 03:37:01 +01:00
|
|
|
source /usr/share/yunohost/helpers
|
|
|
|
source _common.sh
|
2015-05-31 13:46:25 +02:00
|
|
|
|
2017-02-02 03:37:01 +01:00
|
|
|
app=$YNH_APP_INSTANCE_NAME
|
|
|
|
user=$app
|
2017-02-06 23:50:47 +01:00
|
|
|
local_path=$(ynh_app_setting_get $app local_path)
|
2017-02-02 03:37:01 +01:00
|
|
|
domain=$(ynh_app_setting_get $app domain)
|
|
|
|
|
|
|
|
ynh_mysql_remove_db "$user" "$app"
|
2017-02-05 22:45:48 +01:00
|
|
|
|
2017-02-02 03:37:01 +01:00
|
|
|
|
|
|
|
ynh_secure_rm "$local_path"
|
|
|
|
ynh_secure_rm "/home/yunohost.app/$app"
|
2017-02-05 22:45:48 +01:00
|
|
|
|
2017-02-02 03:37:01 +01:00
|
|
|
ynh_rm_nginx_conf
|
|
|
|
ynh_rm_php_fpm_conf
|
2017-02-05 22:45:48 +01:00
|
|
|
|
|
|
|
# Delete user after php5-fpm is restarted without the app conf
|
|
|
|
# We can't delete it before because php5-fpm use it
|
|
|
|
ynh_system_user_delete "$user"
|
|
|
|
|
2017-02-05 23:38:38 +01:00
|
|
|
ynh_package_remove $app-ynh-deps
|
|
|
|
|
2017-02-02 03:37:01 +01:00
|
|
|
sudo yunohost app ssowatconf
|
|
|
|
echo -e "\e[0m" # Restore norml color
|