Základní skript pro práci s djangem
Z Varhoo
script.sh
#!/bin/bash if [ "$1" = "upgrade" ] then pip install --upgrade django-grappelli pip install --upgrade django pip install --upgrade django-filebrowser exit fi if [ "$1" = "--force" ] then find ./ -name "*.pyc" | xargs rm fi #set rights for users WEB_USER=apache2 WEB_GROUP=apache2 echo "Update repository.." su $USER -c "svn update" echo "Set up own rigths.." chown $WEB_USER:$WEB_GROUP -R ./ service apache2 reload