docker-ftps/rootfs/app/healthcheck.sh
paspo 799895baa0
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
healthcheck timeout
2024-02-20 19:02:28 +01:00

8 lines
306 B
Bash
Executable File

#!/bin/sh
USER=healthcheck
LFTP_PASSWORD=$(cat /app/healthcheck.pwd)
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
echo $?