Základní skript pro práci s djangem
Z Varhoo
(Rozdíly mezi verzemi)
(Založena nová stránka: script.sh #!/bin/bash if [ "$1" = "upgrade" ] then pip install --upgrade django-grappelli pip install --upgrade django pip install --upgrade django-filebrowser …) |
|||
Řádka 16: | Řádka 16: | ||
fi |
fi |
||
− | WEB_USER=luhacovske_cz |
+ | #set rights for users |
− | WEB_GROUP=webusers |
+ | WEB_USER=apache2 |
+ | WEB_GROUP=apache2 |
||
echo "Update repository.." |
echo "Update repository.." |
Aktuální verze z 29. 8. 2011, 15:04
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