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 03:12:09 +05:30
parent 0ee709b024
commit 686309fc09
5 changed files with 8 additions and 8 deletions

View file

@ -51,7 +51,7 @@ ynh_backup "/etc/nginx/conf.d/$domain.d/$app.conf"
ynh_backup "/etc/php/7.2/fpm/pool.d/$app.conf"
if [ "$database" == "mysql" ]; then
if [ "$database" = "mysql" ]; then
db_name=$(ynh_app_setting_get $app db_name)
#=================================================
# BACKUP THE MYSQL DATABASE

View file

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

View file

@ -39,7 +39,7 @@ ynh_secure_remove "$final_path"
# Remove the dedicated nginx config
ynh_remove_nginx_config
if [ "$database" == "mysql" ]; then
if [ "$database" = "mysql" ]; then
db_name=$(ynh_app_setting_get $app db_name)
db_user=$db_name
#=================================================

View file

@ -62,7 +62,7 @@ ynh_restore_file "/etc/nginx/conf.d/$domain.d/$app.conf"
ynh_restore_file "$final_path"
if [ "$database" == "mysql" ]; then
if [ "$database" = "mysql" ]; then
#=================================================
# RESTORE THE MYSQL DATABASE
#=================================================

View file

@ -99,7 +99,7 @@ fi
ynh_setup_source "$final_path"
# If the version is 0.3, symfony update is required
if [ "$version" == "0.3" ]
if [ "$version" = "0.3" ]
then
ynh_secure_remove "$final_path"
ynh_setup_source "$final_path"
@ -119,7 +119,7 @@ fi
sudo rm -Rf "$tmpdir"
database=$(ynh_app_setting_get $app database)
if [ "$database" == "mysql" ]; then
if [ "$database" = "mysql" ]; then
# setup application config
sudo cp ../conf/.env $final_path/.env