fermentord/build/debian/fermentord.postinst
Søren Rasmussen b27703708e
All checks were successful
continuous-integration/drone/push Build is passing
Fix udev packaging
2022-07-24 09:51:44 +02:00

17 lines
298 B
Bash

#!/bin/bash
set -e
case "$1" in
install)
groupadd --system --force w1
adduser --system --group --no-create-home --add_extra_groups gpio,w1,i2c --home /var/lib/fermentord --shell /sbin/nologin fermentor
;;
configure)
systemctl try-reload-or-restart fermentord
esac
#DEBHELPER#
exit 0