From d4a3894a93f5516154c11d00b42200d7707aa8b1 Mon Sep 17 00:00:00 2001 From: paspo Date: Thu, 31 Jul 2025 09:34:57 +0200 Subject: [PATCH] chmod only if dir exists --- rootfs/app/entrypoint.sh.d/90_ssh.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rootfs/app/entrypoint.sh.d/90_ssh.sh b/rootfs/app/entrypoint.sh.d/90_ssh.sh index 8734006..032a142 100755 --- a/rootfs/app/entrypoint.sh.d/90_ssh.sh +++ b/rootfs/app/entrypoint.sh.d/90_ssh.sh @@ -16,4 +16,6 @@ if [ -f /ssh/authorized_keys ] ; then chown "${USERNAME}:${GROUPNAME}" /ssh/authorized_keys fi -chmod 0700 "${PATH_WEBROOT}/.ssh" +if [ -d "${PATH_WEBROOT}/.ssh" ] ; then + chmod 0700 "${PATH_WEBROOT}/.ssh" +fi