From 1c7da2c9b3a19f97496af80c91d557f664b7324b Mon Sep 17 00:00:00 2001 From: Aris Date: Thu, 29 Dec 2022 23:37:57 +0100 Subject: [PATCH] Correct path to 'static dir' in DB --- scripts/upgrade | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index 721cba4..1b8ebc4 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -285,6 +285,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 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 #=================================================