aports/testing/nut/nut.pre-install
Valery Kartel e409857fde testing/nut: Upgrade to 2.7.4. conf.d & init.d cleanups
- rename all /etc/nut/*.conf.sample to /etc/nut/*.conf
- make conf.d/* init.d/* more clean and openrc-run'ed
- nut-upsmon now dynamically depends on nut-upsd if the MODE parameter in /etc/nut/nut.conf is set to 'standalone' or 'netserver'.
- make a user and group creation in pre-install. I think we need to remove this user/group from alpine-baselayout.
2016-07-07 11:38:04 +02:00

11 lines
198 B
Bash

#!/bin/sh
if ! getent passwd nut; then
addgroup -S -g 84 nut 2>/dev/null
adduser -SDH -u 84 -h /var/run/nut -s /sbin/nologin -g nut nut 2>/dev/null
fi
adduser nut uucp 2>/dev/null
exit 0