From 1054e61e05dc5cea5ece6a9ecb10c81b8ee0ee80 Mon Sep 17 00:00:00 2001 From: lapineige Date: Thu, 12 Jan 2023 08:22:04 +0100 Subject: [PATCH] Change config file on install to enable admin UI configuration + install Mangane Should do it on upgrade and restore too ? We should document Mangane in the readme. --- scripts/install | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/scripts/install b/scripts/install index b843bc8..2cb814f 100644 --- a/scripts/install +++ b/scripts/install @@ -281,6 +281,10 @@ ynh_systemd_action --service_name=nginx --action=reload # 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_exec_warn_less ynh_exec_as $app -s $SHELL -lc "sed -i 's/configurable_from_database: false/configurable_from_database: true' $config" +# restart Akkoma for the new setting to take effect +ynh_systemd_action --service_name=$app --action="restart" --log_path=systemd #================================================= # INSTALL BASIC FRONTENDS @@ -295,6 +299,13 @@ ynh_exec_warn_less ynh_exec_as $app -s $SHELL -lc "$final_path/live/bin/pleroma_ ynh_script_progression --message="Installing Admin FrontEnd..." --weight=1 ynh_exec_warn_less ynh_exec_as $app -s $SHELL -lc "$final_path/live/bin/pleroma_ctl frontend install admin-fe --ref stable" +#================================================= +# INSTALL MANGANE FRONTEND +#================================================= +# Mangane alternative Front-End will be built in, ready to enable +ynh_exec_warn_less ynh_exec_as $app -s $SHELL -lc "$final_path/live/bin/pleroma_ctl frontend install mangane --ref dist --build-url https://github.com/BDX-town/Mangane/releases/latest/download/static.zip" +# Not activated, users need to change the "primary" frontend in the admin UI (use 'mangane' and 'dist'). + #================================================= # END OF SCRIPT #=================================================