mirror of
https://github.com/YunoHost-Apps/ampache_ynh.git
synced 2024-09-03 18:15:55 +02:00
18 lines
341 B
Bash
18 lines
341 B
Bash
#!/bin/bash
|
|
|
|
set -u
|
|
|
|
. /usr/share/yunohost/helpers
|
|
|
|
app=$YNH_APP_INSTANCE_NAME
|
|
domain=$(ynh_app_setting_get $app domain)
|
|
|
|
ynh_mysql_drop_db $app
|
|
ynh_mysql_drop_user $app
|
|
|
|
# Remove sources
|
|
sudo rm -rf /var/www/$app
|
|
|
|
# Remove Nginx configuration and reload Nginx conf
|
|
sudo rm -f /etc/nginx/conf.d/$domain.d/$app.conf
|
|
sudo service nginx reload
|