From 06f607d85457e92fe0a78e123be7883e82ea68d9 Mon Sep 17 00:00:00 2001 From: lapineige Date: Sun, 1 Jan 2023 15:28:48 +0100 Subject: [PATCH 1/4] Fix DB frontend management - install See https://github.com/YunoHost-Apps/pleroma_ynh/pull/224 --- scripts/install | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/install b/scripts/install index 1032059..b843bc8 100644 --- a/scripts/install +++ b/scripts/install @@ -274,6 +274,14 @@ ynh_script_progression --message="Reloading NGINX web server..." --weight=1 ynh_systemd_action --service_name=nginx --action=reload +#================================================= +# POST INSTALL +#================================================= + +# Correct path to 'static dir' in DB +# This must be done when Akkoma is running (i.e. after install and start) +ynh_exec_warn_less ynh_exec_as $app -s $SHELL -lc "$final_path/live/bin/pleroma_ctl config migrate_to_db" + #================================================= # INSTALL BASIC FRONTENDS #================================================= From 6fb1ecda7731b18753113f741ba71da82b4902a4 Mon Sep 17 00:00:00 2001 From: lapineige Date: Sun, 1 Jan 2023 15:29:57 +0100 Subject: [PATCH 2/4] Fix DB frontend management - upgrade See https://github.com/YunoHost-Apps/pleroma_ynh/pull/224 --- scripts/upgrade | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index 37522e8..9407a80 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -289,6 +289,15 @@ ynh_script_progression --message="Reloading NGINX web server..." --weight=1 ynh_systemd_action --service_name=nginx --action=reload +#================================================= +# POST UPGRADE +#================================================= + +# Correct path to 'static dir' in DB +# This must be done when Pleroma is running (i.e. after install/upgrade and start) +ynh_exec_warn_less ynh_exec_as $app -s $SHELL -lc "$final_path/live/bin/pleroma_ctl config migrate_to_db" + + #================================================= # END OF SCRIPT #================================================= From 5d08edf8673033fe1f16d1e173b736c93bd8506c Mon Sep 17 00:00:00 2001 From: lapineige Date: Sun, 1 Jan 2023 17:53:06 +0100 Subject: [PATCH 3/4] bump version number --- manifest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifest.json b/manifest.json index ec35eca..89aafdc 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "A free, federated social networking server built on ActivityPub open protocol. Derivate of Pleroma.", "fr": "Un serveur de réseautage social fédéré et gratuit basé sur le protocole ouvert ActivityPub. Derivé de Pleroma." }, - "version": "3.5.0~ynh2", + "version": "3.5.0~ynh3", "url": "https://akkoma.social/", "upstream": { "license": "AGPL-3.0-only", From 9c1f56674984c253f35e4fb858cf1ebdc9500c8e Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Sun, 1 Jan 2023 16:53:09 +0000 Subject: [PATCH 4/4] Auto-update README --- README.md | 2 +- README_fr.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e374982..2b7e04b 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ Akkoma is a microblogging server software that can federate (= exchange messages -**Shipped version:** 3.5.0~ynh2 +**Shipped version:** 3.5.0~ynh3 **Demo:** https://otp.akkoma.dev diff --git a/README_fr.md b/README_fr.md index fa46adc..50a95f2 100644 --- a/README_fr.md +++ b/README_fr.md @@ -21,7 +21,7 @@ Akkoma is a microblogging server software that can federate (= exchange messages -**Version incluse :** 3.5.0~ynh2 +**Version incluse :** 3.5.0~ynh3 **Démo :** https://otp.akkoma.dev