From 76b18b2e8037171243f3a1cb2c1763105e47cf80 Mon Sep 17 00:00:00 2001 From: aptalca Date: Thu, 29 Sep 2022 10:29:16 -0400 Subject: [PATCH] fix .ssh perms --- root/etc/s6-overlay/s6-rc.d/init-code-server/run | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/root/etc/s6-overlay/s6-rc.d/init-code-server/run b/root/etc/s6-overlay/s6-rc.d/init-code-server/run index 23b2a23..d93a4d2 100755 --- a/root/etc/s6-overlay/s6-rc.d/init-code-server/run +++ b/root/etc/s6-overlay/s6-rc.d/init-code-server/run @@ -25,3 +25,7 @@ fi # fix permissions (ignore contents of /config/workspace) find /config -path /config/workspace -prune -o -exec chown abc:abc {} + chown abc:abc /config/workspace +chmod 700 /config/.ssh +if [ -n "$(ls -A /config/.ssh)" ]; then + chmod 600 /config/.ssh/* +fi