changes perms in .ssh to file type

This commit is contained in:
Mark Gonzales 2024-08-31 21:50:18 -05:00 committed by GitHub
parent 894f3b2c0c
commit 7579ec248a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -31,5 +31,7 @@ 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/*
find /config/.ssh/ -type d -exec chmod 700 '{}' \;
find /config/.ssh/ -type f -exec chmod 600 '{}' \;
find /config/.ssh/ -type f -iname '*.pub' -exec chmod 644 '{}' \;
fi