diff --git a/conf/config.yml b/conf/config.yml index 7cff170..6c1607e 100644 --- a/conf/config.yml +++ b/conf/config.yml @@ -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 diff --git a/scripts/install b/scripts/install index aeb1859..901ef08 100755 --- a/scripts/install +++ b/scripts/install @@ -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"