From 83bdd329ad1702973efe9fb77c3460cec657a038 Mon Sep 17 00:00:00 2001 From: lapineige Date: Sat, 15 Apr 2023 16:10:38 +0200 Subject: [PATCH] Static dir + Modules dir + reordering --- scripts/install | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/scripts/install b/scripts/install index d1585f8..86d8491 100644 --- a/scripts/install +++ b/scripts/install @@ -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 #=================================================