mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-31 11:21:17 +02:00
- 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.
11 lines
198 B
Bash
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
|