diff --git a/scripts/install b/scripts/install index be01364..c7bba51 100755 --- a/scripts/install +++ b/scripts/install @@ -122,11 +122,15 @@ EOF ynh_store_file_checksum --file="$_openproject_install_dat" + +ynh_replace_string --match_string=".*PORT=.*" --replace_string="export port=$port" --target_file="/etc/default/openproject" + #================================================= # CREATE A POSTGRESQL DATABASE #================================================= ynh_script_progression --message="Creating a PostgreSQL database..." --weight=1 +ynh_psql_create_user "$db_user" "$db_pwd" ynh_psql_create_db "$db_name" "$db_user" "$db_pwd" #================================================= @@ -142,9 +146,6 @@ openproject configure #### SETUP APPLICATION WITH CURL ####================================================= ### -#### Set right permissions for curl install -###chown -R $app: $final_path -### #### Set the app as temporarily public for curl call ###ynh_script_progression --message="Configuring SSOwat..." --weight=1 ###ynh_app_setting_set --app="$app" --key=skipped_uris --value="/"