File: taskd.postinst

package info (click to toggle)
taskd 1.1.0%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 1,576 kB
  • ctags: 1,141
  • sloc: cpp: 13,971; python: 1,523; sh: 1,080; perl: 610; ansic: 48; makefile: 21
file content (22 lines) | stat: -rw-r--r-- 430 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
20
21
22
#!/bin/sh

set -e

case "$1" in
    configure)

      # Create taskd user
      if ! getent passwd Debian-taskd > /dev/null 2>&1
      then
        adduser --system --group --quiet \
          --home /var/lib/taskd --no-create-home \
          --shell /usr/sbin/nologin --gecos "Taskd sync server" \
          --force-badname Debian-taskd
      fi

      chown -R Debian-taskd: /var/lib/taskd /etc/taskd

    ;;
esac

#DEBHELPER#