From db2c97fbccbcdaea586a8189d8f82a3b2f4d5df5 Mon Sep 17 00:00:00 2001 From: rodinux Date: Tue, 19 Sep 2023 19:45:33 +0200 Subject: [PATCH] mfix needed config.local.user.php change place --- scripts/restore | 4 +--- scripts/upgrade | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/scripts/restore b/scripts/restore index 95a920e..be63aa6 100644 --- a/scripts/restore +++ b/scripts/restore @@ -27,10 +27,8 @@ find "$install_dir/data" -type f -exec chmod 660 {} + chmod 440 "$install_dir/config.local.php" chmod 440 "$install_dir/config.local.yunohost.php" -if [[ $install_dir/config.local.user.php -f ]]; then +if [ -f "$install_dir/config.local.user.php" ]; then chmod 660 "$install_dir/config.local.user.php" -else -chmod 660 "$install_dir/data/config.local.user.php" fi #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 761d225..d5035cc 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -39,7 +39,7 @@ ynh_script_progression --message="Backup of the DB in temporary file...." --weig tmp_data_backup=$(mktemp -d) rsync -a $install_dir/data/ $tmp_data_backup/ -if [[ $install_dir/config.local.user.php -f ]]; then +if [ -f "$install_dir/config.local.user.php" ]; then cp -a $install_dir/config.local.user.php $tmp_data_backup/ fi