1
0
Fork 0
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:
lapineige 2023-01-14 12:09:50 +01:00 committed by GitHub
parent 322acba44f
commit ba3cf6b0e6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
#=================================================