14 lines
254 B
Bash
Executable File
14 lines
254 B
Bash
Executable File
#!/bin/sh
|
|
|
|
su python <<'EOF'
|
|
chown -R python:python /home/python
|
|
if [ -d /home/python/appenv ] ; then
|
|
exit 0
|
|
fi
|
|
cd /home/python/
|
|
virtualenv --python=python3.4 appenv
|
|
source appenv/bin/activate
|
|
pip install -r app/requirements.txt
|
|
deactivate
|
|
EOF
|