mirror of
https://github.com/YunoHost-Apps/abantecart_ynh.git
synced 2024-09-03 18:06:16 +02:00
26 lines
475 B
Bash
26 lines
475 B
Bash
#!/bin/bash
|
|
|
|
app=$YNH_APP_INSTANCE_NAME
|
|
set -u
|
|
# Source app helpers
|
|
source /usr/share/yunohost/helpers
|
|
source .fonctions
|
|
|
|
domain=$(ynh_app_setting_get $app domain)
|
|
dbname=$(ynh_app_setting_get $app dbname)
|
|
|
|
REMOVE_BDD "$dname"
|
|
|
|
# Remove installed files
|
|
SECURE_REMOVE '/var/www/${app}'
|
|
REMOVE_NGINX_CONF
|
|
REMOVE_FPM_CONF
|
|
|
|
|
|
# Remove app dependencies
|
|
if ynh_package_is_installed "abantecart-deps"; then
|
|
ynh_package_autoremove "abantecart-deps"
|
|
fi
|
|
|
|
|
|
sudo service nginx reload
|