Browse Source

Fix bug where backup and batch_mode yes/no values could not be changed.

Once set to "no" then they could never be set back to "yes"
pull/2749/head
dkerr64 5 years ago
parent
commit
806b746fc0
  1. 4
      deploy/ssh.sh

4
deploy/ssh.sh

@ -79,7 +79,7 @@ ssh_deploy() {
# BACKUP is optional. If not provided then default to yes # BACKUP is optional. If not provided then default to yes
if [ "$DEPLOY_SSH_BACKUP" = "no" ]; then if [ "$DEPLOY_SSH_BACKUP" = "no" ]; then
Le_Deploy_ssh_backup="no" Le_Deploy_ssh_backup="no"
elif [ -z "$Le_Deploy_ssh_backup" ]; then
elif [ -z "$Le_Deploy_ssh_backup" ] || [ "$DEPLOY_SSH_BACKUP" = "yes" ]; then
Le_Deploy_ssh_backup="yes" Le_Deploy_ssh_backup="yes"
fi fi
_savedomainconf Le_Deploy_ssh_backup "$Le_Deploy_ssh_backup" _savedomainconf Le_Deploy_ssh_backup "$Le_Deploy_ssh_backup"
@ -87,7 +87,7 @@ ssh_deploy() {
# BATCH_MODE is optional. If not provided then default to yes # BATCH_MODE is optional. If not provided then default to yes
if [ "$DEPLOY_SSH_BATCH_MODE" = "no" ]; then if [ "$DEPLOY_SSH_BATCH_MODE" = "no" ]; then
Le_Deploy_ssh_batch_mode="no" Le_Deploy_ssh_batch_mode="no"
elif [ -z "$Le_Deploy_ssh_batch_mode" ]; then
elif [ -z "$Le_Deploy_ssh_batch_mode" ] || [ "$DEPLOY_SSH_BATCH_MODE" = "yes" ]; then
Le_Deploy_ssh_batch_mode="yes" Le_Deploy_ssh_batch_mode="yes"
fi fi
_savedomainconf Le_Deploy_ssh_batch_mode "$Le_Deploy_ssh_batch_mode" _savedomainconf Le_Deploy_ssh_batch_mode "$Le_Deploy_ssh_batch_mode"

Loading…
Cancel
Save