Use ynh_app_setting_set_default
This commit is contained in:
parent
f7ea228df8
commit
2324dd95d2
1 changed files with 2 additions and 8 deletions
|
@ -37,16 +37,10 @@ ynh_systemctl --service="$app" --action="stop"
|
||||||
### some legacy installs and you therefore want to initiaze stuff during upgrade)
|
### some legacy installs and you therefore want to initiaze stuff during upgrade)
|
||||||
|
|
||||||
# If db_name doesn't exist, create it
|
# If db_name doesn't exist, create it
|
||||||
# if [ -z "$db_name" ]; then
|
# ynh_app_setting_set_default --key=db_name --value="$(ynh_sanitize_dbid --db_name=$app)"
|
||||||
# db_name=$(ynh_sanitize_dbid --db_name=$app)
|
|
||||||
# ynh_app_setting_set --key=db_name --value=$db_name
|
|
||||||
# fi
|
|
||||||
|
|
||||||
# If install_dir doesn't exist, create it
|
# If install_dir doesn't exist, create it
|
||||||
# if [ -z "$install_dir" ]; then
|
# ynh_app_setting_set_default --key=install_dir --value="/var/www/$app"
|
||||||
# install_dir=/var/www/$app
|
|
||||||
# ynh_app_setting_set --key=install_dir --value=$install_dir
|
|
||||||
# fi
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
||||||
|
|
Loading…
Reference in a new issue