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