Debian Codegraph @

debian/postinst

raw symbols SCIP
1 #!/bin/sh
2
3 set -e
4
5 # TODO(jelmer): Should this perhaps run as its own user rather than as prometheus?
6
7 case "$1" in
8 configure)
9 # Add prometheus user
10 if ! getent passwd prometheus > /dev/null; then
11 adduser --quiet --system --home /var/lib/prometheus --no-create-home \
12 --group --gecos "Prometheus daemon" prometheus || true
13 fi
14 chown prometheus:prometheus /var/lib/prometheus || true
15
16 ;;
17
18 abort-upgrade|abort-remove|abort-deconfigure)
19 :
20 ;;
21
22 *)
23 echo "postinst called with unknown argument \`$1'" >&2
24 exit 1
25 ;;
26 esac
27
28 # dh_installdeb will replace this with shell code automatically
29 # generated by other debhelper scripts.
30
31 #DEBHELPER#
32
33 exit 0