mirror of
https://github.com/YunoHost-Apps/monica_ynh.git
synced 2024-09-03 19:46:23 +02:00
Store key values if already not set
This commit is contained in:
parent
47621d1122
commit
764b80bf5c
1 changed files with 6 additions and 0 deletions
|
@ -174,6 +174,8 @@ then
|
||||||
ynh_replace_string --match_string="__DAV__" --replace_string="false" --target_file="$config"
|
ynh_replace_string --match_string="__DAV__" --replace_string="false" --target_file="$config"
|
||||||
else
|
else
|
||||||
ynh_replace_string --match_string="__DAV__" --replace_string="true" --target_file="$config"
|
ynh_replace_string --match_string="__DAV__" --replace_string="true" --target_file="$config"
|
||||||
|
dav_support=1
|
||||||
|
ynh_app_setting_set --app=$app --key=dav_support --value=$dav_support
|
||||||
fi
|
fi
|
||||||
# Enable or disable signup for public users
|
# Enable or disable signup for public users
|
||||||
if [ $signup -eq 1 ]
|
if [ $signup -eq 1 ]
|
||||||
|
@ -181,6 +183,8 @@ then
|
||||||
ynh_replace_string --match_string="__SIGNUP__" --replace_string="false" --target_file="$config"
|
ynh_replace_string --match_string="__SIGNUP__" --replace_string="false" --target_file="$config"
|
||||||
else
|
else
|
||||||
ynh_replace_string --match_string="__SIGNUP__" --replace_string="true" --target_file="$config"
|
ynh_replace_string --match_string="__SIGNUP__" --replace_string="true" --target_file="$config"
|
||||||
|
signup=0
|
||||||
|
ynh_app_setting_set --app=$app --key=signup --value=$signup
|
||||||
fi
|
fi
|
||||||
# Enable or disable two factor authentication support for users
|
# Enable or disable two factor authentication support for users
|
||||||
if [ $two_factor -eq 1 ]
|
if [ $two_factor -eq 1 ]
|
||||||
|
@ -188,6 +192,8 @@ then
|
||||||
ynh_replace_string --match_string="__TWO_FACTOR__" --replace_string="true" --target_file="$config"
|
ynh_replace_string --match_string="__TWO_FACTOR__" --replace_string="true" --target_file="$config"
|
||||||
else
|
else
|
||||||
ynh_replace_string --match_string="__TWO_FACTOR__" --replace_string="false" --target_file="$config"
|
ynh_replace_string --match_string="__TWO_FACTOR__" --replace_string="false" --target_file="$config"
|
||||||
|
two_factor=0
|
||||||
|
ynh_app_setting_set --app=$app --key=two_factor --value=$two_factor
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue