From 07fecdacbef5bcc2b134fadae557f74cb11ae6f3 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Tue, 13 Jul 2021 00:51:35 +0200 Subject: [PATCH 1/3] Bump package version to ynh3 --- manifest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifest.json b/manifest.json index c7147f1..700cab0 100644 --- a/manifest.json +++ b/manifest.json @@ -8,7 +8,7 @@ }, "url": "http://friendi.ca", "license": "AGPL-3.0-only", - "version": "2021.04~ynh2", + "version": "2021.04~ynh3", "maintainer": { "name": "Anmol Sharma", "email": "" From 8fd2eef57b2d18f5cf54855cd9b313e52f991142 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Tue, 13 Jul 2021 14:14:00 +0200 Subject: [PATCH 2/3] Fix stupid upgrade issue because destination dir doesn't exists --- scripts/upgrade | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 83e7989..b74f12d 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -113,24 +113,25 @@ then else # Create a temporary directory and backup smarty3 folder - tmpdir="$(ynh_smart_mktemp 6000)" - ynh_script_progression --message="Upgrading source files..." - cp -a "$final_path/view/smarty3" "$tmpdir/view/smarty3" + tmpdir="$(ynh_smart_mktemp 6000)" + ynh_script_progression --message="Upgrading source files..." + mkdir -p "$tmpdir/view/" + cp -a "$final_path/view/smarty3" "$tmpdir/view/smarty3" - # Remove the app directory securely - ynh_secure_remove "$final_path" + # Remove the app directory securely + ynh_secure_remove "$final_path" # 1- Clone stable repo $git clone https://github.com/friendica/friendica.git -b stable "$final_path" # Remove the addon directory securely - ynh_secure_remove "$final_path/addon" + ynh_secure_remove "$final_path/addon" # 2 - Clone addons repo git clone https://github.com/friendica/friendica-addons.git -b stable "$final_path/addon" # Restore the smarty3 folder - cp -a "$tmpdir/view/smarty3" "${final_path}" + cp -a "$tmpdir/view/smarty3" "${final_path}" ynh_secure_remove "$tmpdir" fi From bc9bc842b65512b00fdb63a3b973ea1e628f5956 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Tue, 13 Jul 2021 14:14:21 +0200 Subject: [PATCH 3/3] Bump version to ynh4 --- manifest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifest.json b/manifest.json index 700cab0..f7e361e 100644 --- a/manifest.json +++ b/manifest.json @@ -8,7 +8,7 @@ }, "url": "http://friendi.ca", "license": "AGPL-3.0-only", - "version": "2021.04~ynh3", + "version": "2021.04~ynh4", "maintainer": { "name": "Anmol Sharma", "email": ""