From 86f81e26780e54438a7974b6d2b60df58f3e4a79 Mon Sep 17 00:00:00 2001 From: rodinux Date: Mon, 25 Dec 2023 01:52:36 +0100 Subject: [PATCH] add a line require on config.local.php configuration file to read /data/config.local.user.php --- scripts/upgrade | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 68e5659..633f931 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -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"