docker-ftps/rootfs/app/healthcheck.sh

8 lines
306 B
Bash
Raw Normal View History

2024-02-11 20:09:40 +00:00
#!/bin/sh
USER=healthcheck
LFTP_PASSWORD=$(cat /app/healthcheck.pwd)
2024-02-20 18:02:28 +00:00
lftp -e "set ssl-allow true; set ftp:ssl-force true; set ftp:passive-mode true; set ssl:verify-certificate false; set net:timeout 5; set net:max-retries 1; open -u ${USER},${LFTP_PASSWORD} ftp://127.0.0.1; ls; bye" > /dev/null
2024-02-11 20:09:40 +00:00
echo $?