File: dqcache.postinst

package info (click to toggle)
dq 20230101-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,020 kB
  • sloc: ansic: 8,269; makefile: 363; sh: 176; python: 82
file content (13 lines) | stat: -rw-r--r-- 364 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh -e
set -e

if [ x"$1" = "xconfigure" ]; then

  if ! getent passwd dqcache > /dev/null; then
    adduser --quiet --system --no-create-home --disabled-password --home /nonexistent --ingroup nogroup --gecos "dqcache user" dqcache
  fi
  chown dqcache /var/lib/dqcache/root/dump
  chown dqcache /var/lib/dqcache/root/dump/* 2>/dev/null || :
fi

#DEBHELPER#