updated on Sun Jan 15 08:01:04 UTC 2012
[aur-mirror.git] / pygowave / pygowave.install
blobf6d056bb39648a125b2f4f14830d8020d73becc7
2 pre_install() {
3   /bin/true
6 post_install() {
7   echo "==> Installing defaults and setting permissions"
8   if ! grep -q "^http:" /etc/passwd; then
9     groupadd http
10     useradd -g http -d /srv/http -s /bin/false http
11   fi
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."
25 pre_upgrade() {
26   /bin/true
29 post_upgrade() {
30   /bin/true
33 pre_remove() {
34   /bin/true
37 post_remove() {
38         echo "==> Please backup your changes and manually remove /srv/http/pygowave"
41 # vim:set ts=2 sw=2 et: