File: click.postinst

package info (click to toggle)
click 0.5.2-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,372 kB
  • sloc: python: 7,135; ansic: 857; makefile: 441; sh: 236; perl: 26; xml: 11
file content (19 lines) | stat: -rw-r--r-- 393 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
#! /bin/sh
set -e

if [ "$1" = configure ]; then
	if ! getent passwd clickpkg >/dev/null; then
		adduser --quiet --system --home /nonexistent --no-create-home \
			--disabled-password --shell /bin/false --group \
			clickpkg
	fi

	mkdir -p -m 755 /var/lib/clickpkg
	chown clickpkg:clickpkg /var/lib/clickpkg

	deb-systemd-helper enable click-user-hooks.service || true
fi

#DEBHELPER#

exit 0