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 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", 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 #================================================= 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 #=================================================