From 1f87a1d78785eaef00a95cce7ccb4ef399a5f6ef Mon Sep 17 00:00:00 2001 From: oleole39 Date: Mon, 23 Jan 2023 05:39:48 +0100 Subject: [PATCH] Fix #4 workaround for ynh_psql_setup_db() --- scripts/restore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/restore b/scripts/restore index 02376c5..b7f8745 100755 --- a/scripts/restore +++ b/scripts/restore @@ -91,7 +91,7 @@ ynh_psql_restore_all_app_dbs_dumps --db_user=$db_user --db_user_pwd=db_user_pwd if [ -n "$db_user" ]; then sql="ALTER USER $db_user CREATEDB" ynh_psql_execute_as_root --sql="$sql" - sql= "ALTER USER noalyss WITH PASSWORD '${db_user_pwd}'" #Workaround to restore the backed up password, since as of 23 January 2023, there seems to be a bug in ynh_psql_setup_db() helper (YNH Core) forcing password reset. + sql= "ALTER USER noalyss WITH PASSWORD \"$db_user_pwd\"" #Workaround to restore the backed up password, since as of 23 January 2023, there seems to be a bug in ynh_psql_setup_db() helper (YNH Core) forcing password reset. ynh_psql_execute_as_root --sql="$sql" fi