fermentord/build/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
2022-07-24 07:51:44 +00:00
adduser --system --group --no-create-home --add_extra_groups gpio,w1,i2c --home /var/lib/fermentord --shell /sbin/nologin fermentor
2022-03-11 19:47:08 +00:00
;;
configure)
systemctl try-reload-or-restart fermentord
esac
#DEBHELPER#
exit 0