source: subversion/applications/utils/tirex/debian/tirex-renderd.postinst @ 20500

Last change on this file since 20500 was 20274, checked in by frederik, 10 years ago

initial commit of tirex - a new tile rendering manager

File size: 684 bytes
Line 
1#! /bin/sh
2
3set -e
4
5if ! getent passwd tirex >/dev/null; then
6adduser --group --system --no-create-home --shell /bin/bash --home /var/lib/tirex tirex;
7fi
8
9[ -d /var/run/tirex ] || mkdir -p /var/run/tirex && chown tirex:tirex /var/run/tirex
10[ -d /var/log/tirex ] || mkdir -p /var/log/tirex && chown tirex:tirex /var/log/tirex
11[ -d /var/lib/tirex/tiles ] || mkdir -p /var/lib/tirex/tiles && chown -R tirex:tirex /var/lib/tirex
12
13dpkg-statoverride --list /var/log/tirex >/dev/null || \
14   dpkg-statoverride --update --add tirex adm 0750 /var/log/tirex
15dpkg-statoverride --list /var/run/tirex >/dev/null || \
16   dpkg-statoverride --update --add tirex root 0755 /var/run/tirex
17
18#DEBHELPER#
Note: See TracBrowser for help on using the repository browser.