diff --git a/scripts/install b/scripts/install index 6f3a5a9..1032059 100644 --- a/scripts/install +++ b/scripts/install @@ -232,16 +232,6 @@ ynh_store_file_checksum --file="$config" chmod 400 "$config" chown $app:$app "$config" -#================================================= -# INSTALL BASIC FRONTENDS -#================================================= - -# Pleroma Front-End -#ynh_exec_warn_less ynh_exec_as $app -s $SHELL -lc "$final_path/live/bin/pleroma_ctl frontend install pleroma-fe --ref stable" - -# Admin Front-End -#ynh_exec_warn_less ynh_exec_as $app -s $SHELL -lc "$final_path/live/bin/pleroma_ctl frontend install admin-fe --ref stable" - #================================================= # GENERIC FINALIZATION #================================================= @@ -284,6 +274,19 @@ ynh_script_progression --message="Reloading NGINX web server..." --weight=1 ynh_systemd_action --service_name=nginx --action=reload +#================================================= +# INSTALL BASIC FRONTENDS +#================================================= +#### Fontends need Akkoma to be already running, so they are installed at the very end + +# Pleroma Front-End +ynh_script_progression --message="Installing Pleroma FrontEnd..." --weight=1 +ynh_exec_warn_less ynh_exec_as $app -s $SHELL -lc "$final_path/live/bin/pleroma_ctl frontend install pleroma-fe --ref stable" + +# Admin Front-End +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" + #================================================= # END OF SCRIPT #=================================================