1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/kanboard_ynh.git synced 2024-09-03 19:36:17 +02:00
kanboard_ynh/scripts/remove

29 lines
596 B
Text
Raw Normal View History

#!/bin/bash
2017-10-19 12:13:47 +02:00
# Source local helpers
source ./_common.sh
# Source app helpers
source /usr/share/yunohost/helpers
app=$YNH_APP_INSTANCE_NAME
dbname=$app
dbuser=$app
# Drop MySQL database and user
2017-10-19 15:21:24 +02:00
ynh_mysql_drop_db "$dbname"
ynh_mysql_drop_user "$dbuser"
2014-07-20 18:10:20 +02:00
# Retrieve domain from app settings
domain=$(ynh_app_setting_get "$app" domain)
# Delete app directory and configurations
ynh_secure_remove "/var/www/${app}"
ynh_secure_remove "/etc/php5/fpm/pool.d/${app}.conf"
ynh_secure_remove "/etc/nginx/conf.d/${domain}.d/${app}.conf"
2014-12-22 18:56:59 +01:00
# Reload services
2017-10-19 15:21:24 +02:00
service php5-fpm restart
service nginx reload