mirror of
https://github.com/YunoHost-Apps/monica_ynh.git
synced 2024-09-03 19:46:23 +02:00
Update scripts/install
Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
This commit is contained in:
parent
689eedf7e1
commit
3d75e0f5f4
1 changed files with 13 additions and 6 deletions
|
@ -149,31 +149,38 @@ ynh_replace_string --match_string="language" --replace_string="$language" --targ
|
|||
# Enable or disable DAV support for users
|
||||
if [ $dav_support -eq 0 ]
|
||||
then
|
||||
ynh_replace_string --match_string="__DAV__" --replace_string="false" --target_file="$config"
|
||||
dav_boolean="false"
|
||||
dav="Yes"
|
||||
else
|
||||
ynh_replace_string --match_string="__DAV__" --replace_string="true" --target_file="$config"
|
||||
dav_boolean="true"
|
||||
dav="No"
|
||||
fi
|
||||
|
||||
# Enable or disable signup for public users
|
||||
if [ $signup -eq 1 ]
|
||||
then
|
||||
ynh_replace_string --match_string="__SIGNUP__" --replace_string="false" --target_file="$config"
|
||||
sign_boolean="false"
|
||||
sign="No"
|
||||
else
|
||||
ynh_replace_string --match_string="__SIGNUP__" --replace_string="true" --target_file="$config"
|
||||
sign_boolean="true"
|
||||
sign="Yes"
|
||||
fi
|
||||
|
||||
|
||||
# Enable or disable two factor authentication support for users
|
||||
if [ $two_factor -eq 1 ]
|
||||
then
|
||||
ynh_replace_string --match_string="__TWO_FACTOR__" --replace_string="true" --target_file="$config"
|
||||
twof_boolean="true"
|
||||
twof="Yes"
|
||||
else
|
||||
ynh_replace_string --match_string="__TWO_FACTOR__" --replace_string="false" --target_file="$config"
|
||||
twof_boolean="false"
|
||||
twof="No"
|
||||
fi
|
||||
|
||||
ynh_replace_string --match_string="__DAV__" --replace_string="$dav_boolean" --target_file="$config"
|
||||
ynh_replace_string --match_string="__SIGNUP__" --replace_string="$sign_boolean" --target_file="$config"
|
||||
ynh_replace_string --match_string="__TWO_FACTOR__" --replace_string="$twof_boolean" --target_file="$config"
|
||||
|
||||
#=================================================
|
||||
# DEPLOY
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue