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 WEB_USER=luhacovske_cz WEB_GROUP=webusers echo "Update repository.." su $USER -c "svn update" echo "Set up own rigths.." chown $WEB_USER:$WEB_GROUP -R ./ service apache2 reload