From 925d29b47819552a12d80208ce5e13f1429a7020 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sun, 12 Sep 2021 16:33:56 +0200 Subject: [PATCH] Fix --- scripts/install | 2 +- scripts/restore | 4 ---- scripts/upgrade | 4 ++-- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/scripts/install b/scripts/install index 6b64bb6..95eff85 100755 --- a/scripts/install +++ b/scripts/install @@ -126,7 +126,7 @@ ynh_script_progression --message="Creating smarty3 folder for personal data..." mkdir -p "${final_path}/store" mkdir -p "${final_path}/cache/smarty3" -chmod -R 775 $final_path/store $final_path/cache +chmod -R 777 $final_path/store $final_path/cache # Copy the template install/htconfig.sample.php to .htconfig.php ynh_script_progression --message="Moving .htconfig.php to root of Osada ..." diff --git a/scripts/restore b/scripts/restore index cb2f890..901001d 100755 --- a/scripts/restore +++ b/scripts/restore @@ -14,10 +14,6 @@ source /usr/share/yunohost/helpers # MANAGE SCRIPT FAILURE #================================================= -ynh_clean_setup () { - #### Remove this function if there's nothing to clean before calling the remove script. - true -} # Exit if an error occurs during the execution of the script ynh_abort_if_errors diff --git a/scripts/upgrade b/scripts/upgrade index 76d3da1..18874e2 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -115,7 +115,7 @@ if [ `cd $final_path && git rev-parse --is-inside-work-tree` ]; then fi; done popd - chmod -R 775 $final_path/store + chmod -R 777 $final_path/store else # Create a temporary directory @@ -137,7 +137,7 @@ else cp -a "$tmpdir/.htconfig.php" "${final_path}" cp -a "$tmpdir/php.log" "${final_path}" ynh_secure_remove --file="$tmpdir" - chmod -R 775 $final_path/store + chmod -R 777 $final_path/store mkdir $final_path/addon ynh_setup_source --dest_dir="$final_path/addon" --source_id="app_addons" fi