mirror of
https://github.com/YunoHost-Apps/abantecart_ynh.git
synced 2024-09-03 18:06:16 +02:00
Safe database removal
This commit is contained in:
parent
de5f7ddcd3
commit
afd1e6d5f2
1 changed files with 1 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
app=$YNH_APP_INSTANCE_NAME
|
app=$YNH_APP_INSTANCE_NAME
|
||||||
|
|
||||||
set -u
|
set -u
|
||||||
# Source app helpers
|
# Source app helpers
|
||||||
source /usr/share/yunohost/helpers
|
source /usr/share/yunohost/helpers
|
||||||
|
@ -59,7 +60,6 @@ REMOVE_BDD () { # Suppression de la base de donnée et de l'utilisateur associé
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
domain=$(ynh_app_setting_get $app domain)
|
|
||||||
db_name=$(ynh_app_setting_get $app db_name)
|
db_name=$(ynh_app_setting_get $app db_name)
|
||||||
|
|
||||||
REMOVE_BDD "$db_name"
|
REMOVE_BDD "$db_name"
|
||||||
|
|
Loading…
Add table
Reference in a new issue