blob: cb6dd4b1468bcc3b6a59adccd1946f4c00cbb488 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/bin/sh
# the host is not here
exit 0
set -o errexit
set -o pipefail
set -o nounset
NAS_USER="fwtest"
FW_USER="fwtest"
TEST_CMD="/bin/true" # actually, a good choice, because we'll receive non-0 status code anyway if anything fails
/usr/bin/ssh -o IdentityFile="~${FW_USER}/.ssh/id_rsa" -o ConnectTimeout=5 -l "${NAS_USER}" "${HOST_AMANOJAKU}" \
/usr/bin/ssh -l "${FW_USER}" "${HOST_KASHA}" ${TEST_CMD}
exit $?
|