oohelperd packaging and CI (#374)
Closes https://github.com/ooni/backend/issues/499 Co-authored-by: Simone Basso <bassosimone@gmail.com>
This commit is contained in:
parent
fd5405ade1
commit
8e26dbae8e
10 changed files with 196 additions and 0 deletions
15
internal/cmd/oohelperd/debian/oohelperd.postinst
Executable file
15
internal/cmd/oohelperd/debian/oohelperd.postinst
Executable file
|
|
@ -0,0 +1,15 @@
|
|||
#!/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
|
||||
Loading…
Reference in a new issue