add aconfig file
This commit is contained in:
parent
f7bd11d4c3
commit
69f48342f1
2 changed files with 9 additions and 1 deletions
8
conf/config.php
Normal file
8
conf/config.php
Normal 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__';
|
||||
}
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue