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

Static dir + Modules dir + reordering

This commit is contained in:
lapineige 2023-04-15 16:10:38 +02:00 committed by GitHub
parent c75af95ce6
commit 83bdd329ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -213,6 +213,14 @@ popd
cat "../conf/ldap.exs" >> "$config"
# Configure proper static & module directories
cat "../conf/static_and_modules_dir.exs" >> "$config"
# Setup frontend switcher
# Available here : domain.tld/akkoma/frontend
# It is probably needed to do it before changing "configurable_from_database" as the config file will no longer be used ?
cat "../conf/frontend_switcher.exs" >> "$config"
ynh_replace_string --match_string="config :akkoma, configurable_from_database: false" --replace_string="config :akkoma, configurable_from_database: true" --target_file="$config"
registration_bool_value=`(($registration)) && echo "true" || echo "false"`
ynh_replace_string --match_string="registrations_open: true" --replace_string="registrations_open: $registration_bool_value" --target_file="$config"
@ -310,10 +318,6 @@ ynh_script_progression --message="Installing 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').
# setup frontend switcher
# available here : domain.tld/akkoma/frontend
cat "../conf/frontend_switcher.exs" >> "$config"
#=================================================
# END OF SCRIPT
#=================================================