mirror of
https://github.com/YunoHost-Apps/codimd_ynh.git
synced 2024-09-03 18:16:32 +02:00
Fix
This commit is contained in:
parent
52593df4a0
commit
01d106cad7
2 changed files with 2 additions and 4 deletions
|
@ -30,8 +30,8 @@
|
|||
"addGoogleAnalytics": false
|
||||
},
|
||||
"db": {
|
||||
"username": "__DB_USER__",
|
||||
"password": "__DB_PASS__",
|
||||
"username": "__DB_NAME__",
|
||||
"password": "__DB_PWD__",
|
||||
"database": "__DB_NAME__",
|
||||
"host": "localhost",
|
||||
"port": "5432",
|
||||
|
|
|
@ -86,8 +86,6 @@ ynh_system_user_create --username=$app --home_dir=$final_path
|
|||
ynh_script_progression --message="Creating a PostgreSQL database..." --weight=2
|
||||
|
||||
db_name=$(ynh_sanitize_dbid --db_name=$app)
|
||||
db_user=$db_name
|
||||
db_pwd=$(ynh_app_setting_get --app=$app --key=psqlpwd)
|
||||
ynh_app_setting_set --app=$app --key=db_name --value=$db_name
|
||||
ynh_psql_test_if_first_run
|
||||
ynh_psql_setup_db --db_user=$db_user --db_name=$db_name --db_pwd=$db_pwd
|
||||
|
|
Loading…
Add table
Reference in a new issue