Files
ansible-shared/code/pyenv/files/bin/pyenv-fix-permissions.sh

15 lines
443 B
Bash
Executable File

#!/bin/bash
# Fixes pyenv permissions after installing new versions
# Even though I setfacl specifically on this dir, installing new versions
# forces a mask on the pyenv/versions/xyz folder, so this script fixes that
# and forces permissions back to my standard
# mReschke 2019-04-19
path=/usr/local/lib/pyenv
chown toor:staff $path -R
chmod 2775 $path
find $path -type d -exec chmod 2775 {} \;
setfacl -R -d -m user::rwx,group::rwx $path