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

Add frontend switcher

This commit is contained in:
lapineige 2023-04-15 11:35:20 +02:00 committed by GitHub
parent 3324f30ebb
commit 866142c50c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -196,6 +196,16 @@ if ynh_version_gt "2.4.4~ynh2" "${previous_version}"; then
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"
fi fi
# Add frontend switcher if needed
if grep -q ':pleroma, :frontends, :pickable' $config # This is not resilient to any spacing change, to be refined
then
ynh_script_progression --message="Frontend switcher config already existing, nothing to do about it." --weight=0
else
ynh_script_progression --message="Adding frontend switcher config." --weight=0
cat "../conf/frontend_switcher.exs" >> "$config"
fi
#================================================= #=================================================
# DOWNLOAD, CHECK AND UNPACK SOURCE # DOWNLOAD, CHECK AND UNPACK SOURCE
#================================================= #=================================================