123456789101112131415161718192021222324252627282930 |
- #!/bin/sh
- set -eu
- db_dir_old='/var/db/tang'
- db_dir='/var/lib/tang'
- case "$1" in
- configure)
- if ! getent passwd _tang >/dev/null; then
- adduser --quiet --system --group --no-create-home --home /nonexistent --force-badname _tang
- fi
- # assert db directory
- mkdir -m0750 -p "$db_dir"
- # assert restrictive permissions upon upgrade
- chmod 0750 "$db_dir"
- chown _tang:_tang "$db_dir"
- ;;
- abort-upgrade | abort-remove | abort-deconfigure) ;;
- *)
- echo "postinst called with unknown argument '$1'" >&2
- exit 1
- ;;
- esac
- #DEBHELPER#
- exit 0
|