1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/kimai2_ynh.git synced 2024-09-03 19:26:26 +02:00

Bollean error

This commit is contained in:
anmol26s 2018-10-08 04:15:58 +05:30
parent 8354bae677
commit 7966771e6a

View file

@ -121,14 +121,18 @@ email=$(ynh_user_get_info $admin 'mail')
# COPY LOCAL.YAML
sudo cp ../conf/local.yaml $final_path/config/packages/local.yaml
if [ $registration -eq 1 ]; then
if [ $registration -eq 1 ]
then
# MODIFY LOCAL.YAML
ynh_replace_string "__REGISTRATION__" "true" "$final_path/config/packages/local.yaml"
fi
elif [ $registration -eq 0 ]; then
if [ $registration -eq 0 ]
then
# MODIFY LOCAL.YAML
ynh_replace_string "__REGISTRATION__" "false" "$final_path/config/packages/local.yaml"
fi
# CHECK WHICH DATABASE TO USE
if [ "$database" = "mysql" ]; then