mirror of
https://github.com/YunoHost-Apps/concrete5_ynh.git
synced 2024-09-03 18:25:54 +02:00
Update remove
This commit is contained in:
parent
edf768e842
commit
ff014ac8fe
1 changed files with 8 additions and 1 deletions
|
@ -1,12 +1,19 @@
|
|||
#!/bin/bash
|
||||
|
||||
app=$YNH_APP_INSTANCE_NAME
|
||||
set -u
|
||||
# Source app helpers
|
||||
source /usr/share/yunohost/helpers
|
||||
|
||||
# retrieve arguments
|
||||
app=$YNH_APP_INSTANCE_NAME
|
||||
dbname=$app
|
||||
dbuser=$app
|
||||
domain=$(ynh_app_setting_get $app domain)
|
||||
|
||||
# Drop MySQL database and user
|
||||
ynh_mysql_drop_db "$dbname"
|
||||
ynh_mysql_drop_user "$dbuser"
|
||||
|
||||
sudo rm -rf /var/www/$app
|
||||
sudo rm -f /etc/nginx/conf.d/$domain.d/$app.conf
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue