1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/openproject_ynh.git synced 2024-09-03 19:56:10 +02:00

hotfix bash typo

This commit is contained in:
Geoff Montel 2019-10-01 15:38:14 +02:00
parent dfd3f1ed29
commit 5e45ec6b35

View file

@ -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