Browse Source

evobackup-client: Fix ssh connection test in zzz_evobackup.sh

When I made the ssh key name a variable and defaulted it to id_ed25519,
I forgot to change the hardcoded value for the ssh test in
evobackup-client/templates/zzz_evobackup.default.sh.j2
tags/10.1.0^2
Patrick Marchand 4 months ago
committed by Gitea
parent
commit
f5d06ad0b1
2 changed files with 3 additions and 2 deletions
  1. +1
    -0
      CHANGELOG.md
  2. +2
    -2
      evobackup-client/templates/zzz_evobackup.default.sh.j2

+ 1
- 0
CHANGELOG.md View File

@@ -37,6 +37,7 @@ The **patch** part changes incrementally at each release.
* certbot: restore compatibility with old Nginx
* lxc-php: Install opensmtpd as intended
* mongodb: fix logrotate patterm on Debian buster
* evobackup-client: fixed the ssh connection test

### Removed



+ 2
- 2
evobackup-client/templates/zzz_evobackup.default.sh.j2 View File

@@ -1,5 +1,5 @@
#!/bin/sh
# Careful, the zzz_evobackup template was last updated on 2020/04/15
# Careful, the zzz_evobackup template was last updated on 2020/06/08
#
# Script Evobackup client
# See https://gitea.evolix.org/evolix/evobackup
@@ -76,7 +76,7 @@ test_server() {
port=$(echo "${item}" | cut -d':' -f2)

# Test if the server is accepting connections
ssh -q -o "ConnectTimeout ${SSH_CONNECT_TIMEOUT}" -i /root/.ssh/evobackup_id "${host}" -p "${port}" -t "exit"
ssh -q -o "ConnectTimeout ${SSH_CONNECT_TIMEOUT}" -i {{ evobackup_client__root_key_path }} "${host}" -p "${port}" -t "exit"
# shellcheck disable=SC2181
if [ $? = 0 ]; then
# SSH connection is OK


Loading…
Cancel
Save