add aconfig file

This commit is contained in:
Aliberk Sandıkçı 2024-01-06 13:43:53 +03:00
parent f7bd11d4c3
commit 69f48342f1
Signed by: asandikci
GPG Key ID: 25C67A03B5666BC1
2 changed files with 9 additions and 1 deletions

8
conf/config.php Normal file
View File

@ -0,0 +1,8 @@
<?php
class Config
{
const DB_HOST = 'localhost';
const DB_NAME = '__DB_NAME__';
const DB_USERNAME = '__DB_USER__';
const DB_PASSWORD = '__DB_PWD__';
}

View File

@ -150,7 +150,7 @@ ynh_add_config --template="some_config_file" --destination="$install_dir/some_co
# FIXME: this should be handled by the core in the future
# You may need to use chmod 600 instead of 400,
# for example if the app is expected to be able to modify its own config
chmod 400 "$install_dir/some_config_file"
chmod 600 "$install_dir/some_config_file"
chown $app:$app "$install_dir/some_config_file"
### For more complex cases where you want to replace stuff using regexes,