evobackup-client: Fix ssh connection test in zzz_evobackup.sh
continuous-integration/drone/push Build is passing Details

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
This commit is contained in:
Patrick Marchand 2020-06-08 17:22:18 -04:00
parent d9f9d03140
commit c9daa8ba35
2 changed files with 3 additions and 2 deletions

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

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