1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/lstu_ynh.git synced 2024-09-03 19:36:12 +02:00

Missing ynh_psql_test_if_first_run during upgrade

This commit is contained in:
yalh76 2020-05-30 15:55:33 +02:00
parent 934affc3ae
commit 6377755b7c

View file

@ -58,6 +58,7 @@ fi
if [ -z "$db_pwd" ]; then if [ -z "$db_pwd" ]; then
db_pwd=$(ynh_app_setting_get --app=$app --key=db_pwd) # Fix old db_pwd db_pwd=$(ynh_app_setting_get --app=$app --key=db_pwd) # Fix old db_pwd
if [ -z "$db_pwd" ]; then if [ -z "$db_pwd" ]; then
ynh_psql_test_if_first_run
db_name=$(ynh_sanitize_dbid --db_name="$app") db_name=$(ynh_sanitize_dbid --db_name="$app")
db_user=$db_name db_user=$db_name
# Initialize database and store postgres password for upgrade # Initialize database and store postgres password for upgrade