wmbusmeters/deb/postinst

17 wiersze
406 B
Plaintext

2019-02-23 18:49:30 +00:00
#!/bin/sh
2022-04-28 13:30:07 +00:00
set -e
2022-04-28 13:30:07 +00:00
# Add the wmbusmeters group unless it's already there
addgroup --quiet --system wmbusmeters || true
# creating wmbusmeters user unless it's already there
if ! getent passwd wmbusmeters >/dev/null; then
adduser --system --ingroup wmbusmeters \
--home / --no-create-home \
--gecos "wmbusmeters daemon" \
wmbusmeters
fi
#DEBHELPER#