Lots of updated roles
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user