1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/dolibarr_ynh.git synced 2024-09-03 18:35:53 +02:00
dolibarr_ynh/scripts/remove
scith cc4c506757 Major rework
Major rework of the app:
- Update to latest sources
- Auto-install
- Install, upgrade, remove, backup, restore scripts
- Readme
- Sets up LDAP (still a bug to solve with the passwords preventing LDAP
auth)
- Sync YNH users with Dolibarr users and/or members
- Check_process (broken because of CURL?)
- Hooks (broken)
2017-04-24 04:16:02 +02:00

29 lines
541 B
Bash

#!/bin/bash
set -u
app=$YNH_APP_INSTANCE_NAME
# Source YunoHost helpers
source /usr/share/yunohost/helpers
# Retrieve app settings
domain=$(ynh_app_setting_get "$app" domain)
# Remove sources
sudo rm -rf /var/www/$app
# Remove nginx configuration file
sudo rm -f /etc/nginx/conf.d/$domain.d/$app.conf
# PHP
sudo rm -f /etc/php5/fpm/pool.d/$app.conf
sudo service php5-fpm reload
# MySQL
dbname=$app
dbuser=$app
ynh_mysql_drop_db "$dbname" || true
ynh_mysql_drop_user "$dbuser" || true
# Reload nginx service
sudo service nginx reload