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:
parent
3324f30ebb
commit
866142c50c
1 changed files with 10 additions and 0 deletions
|
@ -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
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Reference in a new issue