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
This commit is contained in:
parent
99f0d9e178
commit
f5d06ad0b1
|
@ -37,6 +37,7 @@ The **patch** part changes incrementally at each release.
|
||||||
* certbot: restore compatibility with old Nginx
|
* certbot: restore compatibility with old Nginx
|
||||||
* lxc-php: Install opensmtpd as intended
|
* lxc-php: Install opensmtpd as intended
|
||||||
* mongodb: fix logrotate patterm on Debian buster
|
* mongodb: fix logrotate patterm on Debian buster
|
||||||
|
* evobackup-client: fixed the ssh connection test
|
||||||
|
|
||||||
### Removed
|
### Removed
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/sh
|
#!/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
|
# Script Evobackup client
|
||||||
# See https://gitea.evolix.org/evolix/evobackup
|
# See https://gitea.evolix.org/evolix/evobackup
|
||||||
|
@ -76,7 +76,7 @@ test_server() {
|
||||||
port=$(echo "${item}" | cut -d':' -f2)
|
port=$(echo "${item}" | cut -d':' -f2)
|
||||||
|
|
||||||
# Test if the server is accepting connections
|
# 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
|
# shellcheck disable=SC2181
|
||||||
if [ $? = 0 ]; then
|
if [ $? = 0 ]; then
|
||||||
# SSH connection is OK
|
# SSH connection is OK
|
||||||
|
|
Loading…
Reference in a new issue