fermentord/debian/fermentord.postinst

18 lines
298 B
Text
Raw Normal View History

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