From 2324dd95d259c53993b6a2c08da5aa572cfe475c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Tue, 3 Sep 2024 14:11:28 +0200 Subject: [PATCH] Use ynh_app_setting_set_default --- scripts/upgrade | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 45d4ee7..957e129 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -37,16 +37,10 @@ ynh_systemctl --service="$app" --action="stop" ### some legacy installs and you therefore want to initiaze stuff during upgrade) # If db_name doesn't exist, create it -# if [ -z "$db_name" ]; then -# db_name=$(ynh_sanitize_dbid --db_name=$app) -# ynh_app_setting_set --key=db_name --value=$db_name -# fi +# ynh_app_setting_set_default --key=db_name --value="$(ynh_sanitize_dbid --db_name=$app)" # If install_dir doesn't exist, create it -# if [ -z "$install_dir" ]; then -# install_dir=/var/www/$app -# ynh_app_setting_set --key=install_dir --value=$install_dir -# fi +# ynh_app_setting_set_default --key=install_dir --value="/var/www/$app" #================================================= # DOWNLOAD, CHECK AND UNPACK SOURCE