1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/akkoma_ynh.git synced 2024-09-03 20:36:17 +02:00

Upgrade frontends

Including admin-fe, should fix bugs such as reported in https://github.com/YunoHost-Apps/akkoma_ynh/issues/23
This commit is contained in:
lapineige 2023-04-15 15:13:49 +02:00 committed by GitHub
parent 866142c50c
commit 6146172727
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -292,6 +292,27 @@ ynh_script_progression --message="Starting a systemd service..." --weight=1
ynh_systemd_action --service_name=$app --action="start" --log_path=systemd --line_match="Access akkoma.Web.Endpoint"
#=================================================
# INSTALL BASIC FRONTENDS (Upgrade them)
#=================================================
#### Fontends need Akkoma to be already running, so they are installed at the very end
# Pleroma Front-End
ynh_script_progression --message="Upgrading 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="Upgrading 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 (Upgrade it)
#=================================================
# Mangane alternative Front-End will be built in, ready to enable
ynh_script_progression --message="Upgrading Mangane FrontEnd..." --weight=1
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').
#=================================================
# RELOAD NGINX
#=================================================