mirror of
https://github.com/YunoHost-Apps/paheko_ynh.git
synced 2024-09-03 19:56:22 +02:00
add a line require on config.local.php configuration file to read /data/config.local.user.php
This commit is contained in:
parent
35a6b0759f
commit
86f81e2678
1 changed files with 6 additions and 3 deletions
|
@ -42,9 +42,12 @@ then
|
|||
fi
|
||||
|
||||
if [ ! -f "$data_dir/data/config.local.user.php" ]; then
|
||||
ynh_add_config --template="config.local.php" --destination="$install_dir/config.local.php"
|
||||
chmod 650 "$install_dir/config.local.php"
|
||||
chown $app:$app "$install_dir/config.local.php"
|
||||
echo'
|
||||
/**
|
||||
* Chemin vers le fichier pour des configurations personnelles
|
||||
* qui ne sera pas écraser lors des mises à jour.
|
||||
*/
|
||||
require '$data_dir/data/config.local.user.php';' >> $install_dir/config.local.php
|
||||
ynh_add_config --template="config.local.user.php" --destination="$data_dir/data/config.local.user.php"
|
||||
chmod 650 "$data_dir/data/config.local.user.php"
|
||||
chown $app:$app "$data_dir/data/config.local.user.php"
|
||||
|
|
Loading…
Add table
Reference in a new issue