aboutsummaryrefslogtreecommitdiff
path: root/scripts/remove
diff options
context:
space:
mode:
authornemsia <nemsia@nemsia.org>2018-06-12 23:26:56 +0200
committernemsia <nemsia@nemsia.org>2018-06-12 23:26:56 +0200
commit29c54691fe2d7f105b346ac23d38b86b3c187f3a (patch)
tree11d63d1cc387ea9ad3552bffb70fe50df16f9794 /scripts/remove
parent4d552172643c981e10490e21e4c343baad5a933e (diff)
parentae04282b9e5bb3a2dff513b1c37c0ff54fd95db4 (diff)
downloadmastodon_ynh-29c54691fe2d7f105b346ac23d38b86b3c187f3a.tar.gz
mastodon_ynh-29c54691fe2d7f105b346ac23d38b86b3c187f3a.tar.bz2
mastodon_ynh-29c54691fe2d7f105b346ac23d38b86b3c187f3a.zip
Merge branch 'testing-2.4' of https://github.com/YunoHost-Apps/mastodon_ynh into YunoHost-Apps-testing-2.4
Diffstat (limited to 'scripts/remove')
-rw-r--r--scripts/remove5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/remove b/scripts/remove
index e939908..470455e 100644
--- a/scripts/remove
+++ b/scripts/remove
@@ -22,8 +22,11 @@ app=$YNH_APP_INSTANCE_NAME
# Retrieve app settings
domain=$(ynh_app_setting_get "$app" domain)
db_name=$(ynh_app_setting_get "$app" db_name)
+if [ -z "$db_name" ]; then
+ db_name="${app}_production"
+ ynh_app_setting_set "$app" db_name "$db_name"
+fi
db_user=$(ynh_sanitize_dbid "$app")
-db_name=$(ynh_sanitize_dbid "$app")
final_path=$(ynh_app_setting_get "$app" final_path)
#=================================================