From c942fa31350f0c4e610ead805794b2d9c9785f61 Mon Sep 17 00:00:00 2001 From: rodinux Date: Mon, 25 Dec 2023 02:29:09 +0100 Subject: [PATCH] try add file and line to read /data/config.local.user.php --- scripts/upgrade | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 3d0726b..bc52292 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -41,6 +41,10 @@ then ynh_setup_source --dest_dir="$install_dir" --keep="config.local.php data/plugins" fi + +chmod -R o-rwx "$install_dir" +chown -R $app:www-data "$install_dir" + 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" @@ -53,9 +57,6 @@ if [ ! -f "$data_dir/data/config.local.user.php" ]; then require '$data_dir/data/config.local.user.php';' >> $install_dir/config.local.php fi -chmod -R o-rwx "$install_dir" -chown -R $app:www-data "$install_dir" - #================================================= # REAPPLY SYSTEM CONFIGURATIONS #=================================================