mirror of
https://github.com/YunoHost-Apps/akkoma_ynh.git
synced 2024-09-03 20:36:17 +02:00
Reordering
`migrate_to_db` has to be done when Akkoma is running.
This commit is contained in:
parent
322acba44f
commit
ba3cf6b0e6
1 changed files with 9 additions and 5 deletions
|
@ -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
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue