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:
parent
55e5b21330
commit
bfc2ae3816
2 changed files with 2 additions and 1 deletions
|
@ -15,7 +15,7 @@ server:
|
||||||
|
|
||||||
database: # for database see (configure database section)
|
database: # for database see (configure database section)
|
||||||
dialect: mysql
|
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
|
defaultuser: # on database creation, gotify creates an admin user
|
||||||
name: __ADMINUSER__ # the username of the default user
|
name: __ADMINUSER__ # the username of the default user
|
||||||
|
|
|
@ -156,6 +156,7 @@ ynh_add_systemd_config
|
||||||
### `ynh_replace_string` is used to replace a string in a file.
|
### `ynh_replace_string` is used to replace a string in a file.
|
||||||
### (It's compatible with sed regular expressions syntax)
|
### (It's compatible with sed regular expressions syntax)
|
||||||
cp ../conf/config.yml "$final_path/config.yml"
|
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 "__PORT__" $port "$final_path/config.yml"
|
||||||
ynh_replace_string "__DBNAME__" $db_name "$final_path/config.yml"
|
ynh_replace_string "__DBNAME__" $db_name "$final_path/config.yml"
|
||||||
ynh_replace_string "__DBPASS__" $db_pwd "$final_path/config.yml"
|
ynh_replace_string "__DBPASS__" $db_pwd "$final_path/config.yml"
|
||||||
|
|
Loading…
Add table
Reference in a new issue