From ba3cf6b0e6bb46d33d6ec95a756a5650775bf158 Mon Sep 17 00:00:00 2001 From: lapineige Date: Sat, 14 Jan 2023 12:09:50 +0100 Subject: [PATCH] Reordering `migrate_to_db` has to be done when Akkoma is running. --- scripts/install | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/scripts/install b/scripts/install index d47ab6f..b64d5c1 100644 --- a/scripts/install +++ b/scripts/install @@ -232,11 +232,8 @@ ynh_store_file_checksum --file="$config" chmod 400 "$config" chown $app:$app "$config" -ynh_script_progression --message="Configure admin UI to allow it to change setting..." --weight=1 -# 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" -# allow configuration from the admin UI +ynh_script_progression --message="Configure admin UI to allow it to change setting - step 1/2" --weight=1 +# change config file to allow configuration from the admin UI ynh_replace_string --match_string="configurable_from_database: false" --replace_string="configurable_from_database: true" --target_file="$config" #================================================= @@ -283,6 +280,13 @@ ynh_systemd_action --service_name=nginx --action=reload #================================================= # POST INSTALL +#================================================= + +ynh_script_progression --message="Configure admin UI to allow it to change setting - step 2/2" --weight=1 +# 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 #=================================================