diff --git a/scripts/install b/scripts/install index 579c7ca..9bde2fd 100755 --- a/scripts/install +++ b/scripts/install @@ -141,7 +141,7 @@ ynh_script_progression --message="Creating a PostgreSQL database..." --time --we ### - Remove also the section "REMOVE THE MYSQL DATABASE" in the remove script ### - As well as the section "RESTORE THE MYSQL DATABASE" in the restore script -db_name="outline_${app}" +db_name=$app db_user=$app db_pwd=$(ynh_string_random --length=30) ynh_app_setting_set --app=$app --key=db_name --value=$db_name @@ -149,6 +149,9 @@ ynh_app_setting_set --app=$app --key=db_pwd --value=$db_pwd ynh_psql_test_if_first_run ynh_psql_setup_db --db_user=$db_user --db_name=$db_name --db_pwd=$db_pwd +ynh_psql_execute_as_root --sql="CREATE EXTENSION IF NOT EXISTS unaccent;" --database=$db_name +ynh_psql_execute_as_root --sql="CREATE EXTENSION IF NOT EXISTS pg_trgm;" --database=$db_name + #================================================= # DOWNLOAD, CHECK AND UNPACK SOURCE #=================================================