Skip to content

Commit 7579ec2

Browse files
changes perms in .ssh to file type
1 parent 894f3b2 commit 7579ec2

File tree

1 file changed

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

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,7 @@ find /config -path /config/workspace -prune -o -exec chown abc:abc {} +
3131
chown abc:abc /config/workspace
3232
chmod 700 /config/.ssh
3333
if [[ -n "$(ls -A /config/.ssh)" ]]; then
34-
chmod 600 /config/.ssh/*
34+
find /config/.ssh/ -type d -exec chmod 700 '{}' \;
35+
find /config/.ssh/ -type f -exec chmod 600 '{}' \;
36+
find /config/.ssh/ -type f -iname '*.pub' -exec chmod 644 '{}' \;
3537
fi

0 commit comments

Comments
 (0)