From 7c4da42dc481e6ae1aa3f2fccee88051b624d3ff Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sat, 26 Aug 2023 18:12:40 +0200 Subject: [PATCH] Update install --- scripts/install | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index d921150..9841458 100644 --- a/scripts/install +++ b/scripts/install @@ -44,7 +44,8 @@ usermod -a -G ssl-cert $app #================================================= ynh_script_progression --message="Creating a PostgreSQL database..." --weight=2 -ynh_psql_execute_as_root --sql="CREATE DATABASE $db_name ENCODING 'UTF8' LC_COLLATE='C' LC_CTYPE='C' template=template0 OWNER $app;" +ynh_psql_connect_as --user=$db_user --password="$db_pwd" --database=$db_name \ + <<< "ALTER DATABASE $db_name ENCODING 'UTF8' LC_COLLATE='C' LC_CTYPE='C' template=template0;" #================================================= # DOWNLOAD, CHECK AND UNPACK SOURCE