1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/osada_ynh.git synced 2024-09-03 19:46:30 +02:00

Update upgrade

This commit is contained in:
yalh76 2022-06-24 03:36:24 +02:00
parent a6f9a3c80f
commit 52bb80e0cc

View file

@ -148,8 +148,10 @@ ynh_script_progression --message="Updating a configuration file..." --weight=1
if [ $database = "mysql" ]; then
db_type=0
db_pwd=$(ynh_app_setting_get --app=$app --key=mysqlpwd)
elif [ $database = "postgresql" ]; then
db_type=1
db_pwd=$(ynh_app_setting_get --app=$app --key=psqlpwd)
else
ynh_die --message="Some problem occured in creating the database, contact maintainer"
fi