mirror of
https://github.com/agdsn/ancient-weatherstation.git
synced 2026-06-19 23:07:59 +00:00
e85b29966e
git-svn-id: file:///home/jan/tmp/wetterstation/trunk@187 dd492736-c11a-0410-ad51-8c26713eaf7f
18 lines
480 B
Bash
18 lines
480 B
Bash
#!/bin/sh
|
|
|
|
#DEBHELPER#
|
|
|
|
if ! getent passwd weatherstation >/dev/null 2>&1; then
|
|
echo -n "Creating user/group 'weatherstation'" >&2
|
|
adduser --quiet --system --group --no-create-home \
|
|
--disabled-password --disabled-login \
|
|
--shell /bin/false \
|
|
weatherstation
|
|
echo "."
|
|
fi
|
|
adduser weatherstation dialout
|
|
|
|
# Fixperms:
|
|
/bin/chown weatherstation:weatherstation /etc/weatherstation/weatherd.conf
|
|
/bin/chmod 440 /etc/weatherstation/weatherd.conf
|