diff --git a/scripts/install b/scripts/install index 59b07a8..1558f93 100755 --- a/scripts/install +++ b/scripts/install @@ -130,6 +130,7 @@ ynh_add_nginx_config # OPENPROJECT CONFIGURATION #================================================= db_name=$(ynh_sanitize_dbid --db_name=$app) +db_pwd=$(ynh_string_random) # Generate a random password db_user=$db_name ynh_script_progression --message="Configuring OpenProject..." --weight=1 sudo -iu $app cat >> $final_path/config/database.yml << EOF @@ -161,7 +162,6 @@ ynh_store_file_checksum --file="$final_path/config/configuration.yml" #================================================= ynh_script_progression --message="Creating a PostgreSQL database..." --weight=1 -local db_pwd=$(ynh_string_random) # Generate a random password ynh_app_setting_set --app=$app --key=dbpwd --value=$db_pwd # Store the password in the app's config ynh_app_setting_set --app=$app --key=db_name --value=$db_name