File: pollinate.postinst

package info (click to toggle)
pollinate 4.33-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 364 kB
  • sloc: sh: 325; makefile: 7
file content (15 lines) | stat: -rw-r--r-- 315 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh
set -e

PKG="pollinate"

# Create the user if necessary
if ! getent passwd $PKG >/dev/null; then
	adduser --disabled-password --quiet --system --home /var/cache/$PKG --ingroup daemon --shell /bin/false $PKG
fi
mkdir -p /var/cache/$PKG
chown -f $PKG /var/cache/$PKG
rm -f /var/cache/$PKG/tag


#DEBHELPER#