From 4fb6d71a772dc955f2f0b0b6e0f0676729cf3e00 Mon Sep 17 00:00:00 2001 From: paspo Date: Mon, 4 Aug 2025 11:43:13 +0200 Subject: [PATCH] start SSH only if enables --- rootfs/app/entrypoint.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/rootfs/app/entrypoint.sh b/rootfs/app/entrypoint.sh index f0f8160..b612acf 100755 --- a/rootfs/app/entrypoint.sh +++ b/rootfs/app/entrypoint.sh @@ -82,8 +82,10 @@ echo "# Starting cron" crond -b # start ssh -echo "# Starting ssh" -/usr/sbin/sshd -e +if [ "${DISABLE_SFTP}" -ne 1 ] ; then + echo "# Starting ssh" + /usr/sbin/sshd -e +fi # start nginx echo "# Starting nginx"