File: postinst

package info (click to toggle)
ladvd 1.1.2-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,264 kB
  • sloc: ansic: 11,170; sh: 189; makefile: 183
file content (14 lines) | stat: -rw-r--r-- 318 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

set -e

if [ "$1" = "configure" ]; then
  if ! getent passwd ladvd > /dev/null; then
    adduser --system --quiet --group --no-create-home --home /var/empty/ \
      --disabled-password --disabled-login ladvd
  fi
fi

dpkg-maintscript-helper rm_conffile /etc/default/ladvd 1.0.4~ ladvd -- "$@"

#DEBHELPER#