Skip to content

Commit 76b18b2

Browse files
committed
fix .ssh perms
1 parent 04cdba5 commit 76b18b2

File tree

1 file changed

+4
-0
lines changed
  • root/etc/s6-overlay/s6-rc.d/init-code-server

1 file changed

+4
-0
lines changed

root/etc/s6-overlay/s6-rc.d/init-code-server/run

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,7 @@ fi
2525
# fix permissions (ignore contents of /config/workspace)
2626
find /config -path /config/workspace -prune -o -exec chown abc:abc {} +
2727
chown abc:abc /config/workspace
28+
chmod 700 /config/.ssh
29+
if [ -n "$(ls -A /config/.ssh)" ]; then
30+
chmod 600 /config/.ssh/*
31+
fi

0 commit comments

Comments
 (0)