File: postinst

package info (click to toggle)
syncache 1.2-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 204 kB
  • ctags: 222
  • sloc: ruby: 1,525; sh: 112; makefile: 9
file content (28 lines) | stat: -rw-r--r-- 453 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/sh

set -e

PIDDIR="/var/run/syncache-drb"

case "$1" in
	configure)

	# Create syncache system user
	getent passwd syncache > /dev/null || \
		adduser --quiet --system --home "$PIDDIR" --no-create-home \
		--gecos 'SynCache DRb Server' --group syncache

	;;

	failed-upgrade|abort-upgrade|abort-remove|abort-deconfigure|in-favour|removing)
	;;

	*)
	echo "postinst called with unknown argument \`$1'" >&2;
	exit 1;
	;;
esac

#DEBHELPER#

exit 0