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:
parent
c75af95ce6
commit
83bdd329ad
1 changed files with 8 additions and 4 deletions
|
@ -213,6 +213,14 @@ popd
|
||||||
|
|
||||||
cat "../conf/ldap.exs" >> "$config"
|
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"
|
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"`
|
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"
|
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"
|
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').
|
# 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
|
# END OF SCRIPT
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Reference in a new issue