1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/gotify_ynh.git synced 2024-09-03 20:36:26 +02:00

fix db username

This commit is contained in:
Clément 2019-02-23 17:47:12 +01:00
parent 55e5b21330
commit bfc2ae3816
2 changed files with 2 additions and 1 deletions

View file

@ -15,7 +15,7 @@ server:
database: # for database see (configure database section)
dialect: mysql
connection: gotify:__DBPASS__@/__DBNAME__?charset=utf8&parseTime=True&loc=Local
connection: __APP__:__DBPASS__@/__DBNAME__?charset=utf8&parseTime=True&loc=Local
defaultuser: # on database creation, gotify creates an admin user
name: __ADMINUSER__ # the username of the default user

View file

@ -156,6 +156,7 @@ ynh_add_systemd_config
### `ynh_replace_string` is used to replace a string in a file.
### (It's compatible with sed regular expressions syntax)
cp ../conf/config.yml "$final_path/config.yml"
ynh_replace_string "__APP__" $app "$final_path/config.yml"
ynh_replace_string "__PORT__" $port "$final_path/config.yml"
ynh_replace_string "__DBNAME__" $db_name "$final_path/config.yml"
ynh_replace_string "__DBPASS__" $db_pwd "$final_path/config.yml"