From 681b9fdef62d3f0b4b0f950be2c9133b2bb391b3 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Thu, 15 Jul 2021 07:49:00 +0200 Subject: [PATCH] Update upgrade --- scripts/upgrade | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 29eb5af..34e97bb 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -78,14 +78,6 @@ ynh_script_progression --message="Upgrading source files..." # Download, check integrity, uncompress and patch the source from app.src ynh_setup_source --dest_dir="$final_path" -# cp -a "$tmpdir/store" "${final_path}" -# cp -a "$tmpdir/.htconfig.php" "${final_path}" -# cp -a "$tmpdir/php.log" "${final_path}" -# ynh_secure_remove "$tmpdir" -# chmod -R 777 $final_path/store -# mkdir $final_path/addon -# ynh_setup_source --dest_dir="$final_path/addon" --source_id="app_addons" - if [ `cd $final_path && git rev-parse --is-inside-work-tree` ]; then pushd "$final_path" git pull @@ -142,7 +134,7 @@ else cp -a "$tmpdir/.htconfig.php" "${final_path}" cp -a "$tmpdir/php.log" "${final_path}" ynh_secure_remove --file="$tmpdir" - chmod -R 777 $final_path/store + chmod -R 775 $final_path/store mkdir $final_path/addon ynh_setup_source --dest_dir="$final_path/addon" --source_id="app_addons"