File: postinst

package info (click to toggle)
twms 0.05t-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 284 kB
  • ctags: 222
  • sloc: python: 1,647; sh: 79; makefile: 22
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