scripts/check-uninsane: fix so ssh servo systemctl --failed
actually works on servo, even when ssh key is locked
This commit is contained in:
parent
fce426c318
commit
259143b87e
|
@ -23,6 +23,16 @@ check() {
|
|||
return $rc
|
||||
}
|
||||
|
||||
runOnHost() {
|
||||
local host="$1"
|
||||
shift
|
||||
if [ "$host" = "$(hostname)" ]; then
|
||||
"$@"
|
||||
else
|
||||
ssh "$host-hn" "$@"
|
||||
fi
|
||||
}
|
||||
|
||||
check "self-test" false 2> /dev/null
|
||||
if [ $last_error -eq 0 ]; then
|
||||
echo "SELF-TEST FAILED" >&2
|
||||
|
@ -70,7 +80,7 @@ check "ftp://uninsane.org" lftpgetIntoTmp ftp://uninsane.org/README.md README.md
|
|||
|
||||
echo ""
|
||||
echo "systemctl --failed:"
|
||||
ssh uninsane.org systemctl -q --failed
|
||||
runOnHost servo systemctl -q --failed
|
||||
|
||||
echo ""
|
||||
if [ $last_error -eq 0 ]; then
|
||||
|
|
Loading…
Reference in New Issue
Block a user