ooni-probe-cli/internal/cmd/oohelperd/debian/oohelperd.postinst
Federico Ceratto 8e26dbae8e
oohelperd packaging and CI (#374)
Closes https://github.com/ooni/backend/issues/499

Co-authored-by: Simone Basso <bassosimone@gmail.com>
2021-06-15 15:53:22 +02:00

16 lines
256 B
Bash
Executable File

#!/bin/sh
set -e
. /usr/share/debconf/confmodule
db_version 2.0
if [ "$1" = "configure" ]; then
if ! getent passwd oohelperd >/dev/null; then
adduser --quiet --system --group --home /var/lib/oohelperd oohelperd
fi
fi
#DEBHELPER#
exit 0