7 echo "==> Installing defaults and setting permissions"
8 if ! grep -q "^http:" /etc/passwd; then
10 useradd -g http -d /srv/http -s /bin/false http
12 mkdir -p /srv/http/pygowave/client_cache
13 touch /srv/http/pygowave/__init__.py
14 cp -n -R /usr/share/pygowave/locale /srv/http/pygowave
15 cp -n -R /usr/share/pygowave/media /srv/http/pygowave
16 cp -n -R /usr/share/pygowave/templates /srv/http/pygowave
17 cp -n /usr/share/pygowave/orbited.cfg /usr/share/pygowave/urls.py /srv/http/pygowave
18 cp -n /usr/share/pygowave/settings-template-development.py /srv/http/pygowave/settings.py
19 chgrp -R http /srv/http/pygowave
20 chmod g+w /srv/http/pygowave /srv/http/pygowave/client_cache /srv/http/pygowave/media/avatars /srv/http/pygowave/media/gadgets
21 echo "==> Done. Please review the settings and run \"manage.py syncdb\""
22 echo "==> in /srv/http/pygowave."
38 echo "==> Please backup your changes and manually remove /srv/http/pygowave"
41 # vim:set ts=2 sw=2 et: