File: postinst

package info (click to toggle)
twms 0.03e-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 424 kB
  • sloc: python: 1,527; sh: 111; makefile: 9
file content (18 lines) | stat: -rw-r--r-- 434 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh
# postinst script for twms
set -e

if [ "$1" = "configure" ]; then
	if ! getent passwd twms > /dev/null ; then
		echo 'Adding system-user for twms' 1>&2
		adduser --system --group --quiet --home /var/cache/twms \
			--no-create-home --disabled-login twms
	fi
	install -d -otwms -gtwms -m2750 /var/log/twms
	install -d -otwms -gtwms -m750 /var/cache/twms /var/cache/twms/tiles /var/cache/twms/traces

fi

#DEBHELPER#

exit 0