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:
parent
866142c50c
commit
6146172727
1 changed files with 21 additions and 0 deletions
|
@ -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
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in a new issue