Last active
August 29, 2015 14:07
-
-
Save citricacid-pl/3152b0ce7b9110321686 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Install virtualenvwrapper and packages needed to run DjangoCMS | |
sudo apt-get install -y build-essential python-pip python-dev libjpeg8-dev zlib1g-dev libtiff4-dev libfreetype6-dev | |
sudo pip install --upgrade virtualenv | |
sudo pip install virtualenvwrapper | |
mkdir ~/.virtualenvs | |
export WORKON_HOME=~/.virtualenvs | |
if grep -q "\/usr\/local\/bin\/virtualenvwrapper\.sh" ~/.bashrc | |
then | |
echo '' | |
else | |
echo ". /usr/local/bin/virtualenvwrapper.sh" >> ~/.bashrc | |
. $HOME/.bashrc | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment