fix .ssh perms

This commit is contained in:
aptalca 2022-09-29 10:29:16 -04:00
parent 04cdba5c2b
commit 76b18b2e80

View File

@ -25,3 +25,7 @@ fi
# fix permissions (ignore contents of /config/workspace) # fix permissions (ignore contents of /config/workspace)
find /config -path /config/workspace -prune -o -exec chown abc:abc {} + find /config -path /config/workspace -prune -o -exec chown abc:abc {} +
chown abc:abc /config/workspace chown abc:abc /config/workspace
chmod 700 /config/.ssh
if [ -n "$(ls -A /config/.ssh)" ]; then
chmod 600 /config/.ssh/*
fi