From 70ca18683cfcf19adb808c0b7246f23e2a41f8bf Mon Sep 17 00:00:00 2001 From: rodinux Date: Mon, 25 Dec 2023 04:04:19 +0100 Subject: [PATCH] try add file and line to read /data/config.local.user.php --- scripts/upgrade | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index b42302c..8e82fba 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -42,12 +42,12 @@ if [ ! -f "$data_dir/data/config.local.user.php" ]; then 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" - echo" + 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 + require '__DATA_DIR__/data/config.local.user.php';" >> $install_dir/config.local.php fi #=================================================