Lots of updated roles

This commit is contained in:
2020-05-12 17:07:38 -06:00
parent 5a9254097e
commit 6bb3e3f34f
35 changed files with 264 additions and 125 deletions

View File

@@ -1,14 +0,0 @@
#!/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

View File

@@ -12,8 +12,4 @@ if command -v pyenv 1>/dev/null 2>&1; then
eval "$(pyenv init -)"
fi
# Python aliases
alias pv='echo "Version:" && python --version && echo && echo "Interpreter Path:" && python -c "import sys;print(sys.prefix)" && echo && echo "Paths:" && python -c "import sys;print(sys.path);"'
alias activate='source env/bin/activate && pv'
alias pips='pipenv shell && echo "pipenv shell has been deactivated" && echo && pv'
# Python aliases for pv, activate and pips should already be defined in shared/server