File: postinst

package info (click to toggle)
crywrap 0.2.1-4
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 784 kB
  • ctags: 241
  • sloc: sh: 2,751; ansic: 1,979; makefile: 166
file content (20 lines) | stat: -rw-r--r-- 486 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#! /bin/sh
## arch-tag: 74a1b9a5-2954-4ab3-ba6c-eb24cb180588

set -e

if [ "$1" = "configure" ]; then
	addgroup --system crywrap >/dev/null || true
	adduser --system --ingroup crywrap --home /etc/crywrap \
		--no-create-home --disabled-login \
		--disabled-password crywrap >/dev/null
fi

if [ -x "/etc/init.d/crywrap" ]; then
	update-rc.d crywrap defaults >/dev/null
	if command -v invoke-rc.d >/dev/null 2>&1; then
		invoke-rc.d crywrap start
	else
		/etc/init.d/crywrap start
	fi
fi