check-uninsane: fix ftp test to work when invoked from the wan

This commit is contained in:
Colin 2024-06-18 07:55:11 +00:00
parent c1b3629dcf
commit ded5f6560d

View File

@ -104,8 +104,10 @@ lftpgetIntoTmp() {
rm -f "$localName"
lftpget "$url"
)
local contents=$(cat "/tmp/$localName")
test "$contents" = "automated tests read this file to probe connectivity"
}
check "ftp://uninsane.org" lftpgetIntoTmp ftp://uninsane.org/README.md README.md
check "ftps://ftp.uninsane.org" lftpgetIntoTmp ftps://ftp.uninsane.org/pub/test test
echo ""
echo "systemctl --failed:"