File: postinst

package info (click to toggle)
ladvd 1.1.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 1,240 kB
  • sloc: ansic: 11,169; sh: 189; makefile: 184
file content (14 lines) | stat: -rw-r--r-- 319 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#