diff --git a/scripts/install b/scripts/install index 180b4ac..425ee92 100755 --- a/scripts/install +++ b/scripts/install @@ -153,10 +153,14 @@ ynh_app_setting_set "$app" db_pwd "$db_pwd" ynh_psql_test_if_first_run ynh_psql_create_user "$app" "$db_pwd" ynh_psql_execute_as_root "CREATE DATABASE $db_name ENCODING 'UTF8' LC_COLLATE='C' LC_CTYPE='C' template=template0 OWNER $db_name;" -ynh_psql_execute_as_root "CREATE EXTENSION IF NOT EXISTS unaccent;" $db_name -ynh_psql_execute_as_root "CREATE EXTENSION IF NOT EXISTS pg_trgm;" $db_name -ynh_psql_execute_as_root "CREATE EXTENSION IF NOT EXISTS citext;" $db_name -ynh_psql_execute_as_root "CREATE EXTENSION IF NOT EXISTS \"uuid-ossp\";"$db_name +ynh_psql_execute_as_root "\connect $db_name +CREATE EXTENSION IF NOT EXISTS unaccent;" +ynh_psql_execute_as_root "\connect $db_name +CREATE EXTENSION IF NOT EXISTS pg_trgm;" +ynh_psql_execute_as_root "\connect $db_name +CREATE EXTENSION IF NOT EXISTS citext;" +ynh_psql_execute_as_root "\connect $db_name +CREATE EXTENSION IF NOT EXISTS \"uuid-ossp\";" #================================================= # DOWNLOAD, CHECK AND UNPACK SOURCE