From e409857fde32cd84d3f9de1c169336ee0d071e92 Mon Sep 17 00:00:00 2001 From: Valery Kartel Date: Mon, 13 Jun 2016 17:29:29 +0300 Subject: 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. --- testing/nut/nut.pre-install | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'testing/nut/nut.pre-install') diff --git a/testing/nut/nut.pre-install b/testing/nut/nut.pre-install index 707f98d53a..f55657454e 100644 --- a/testing/nut/nut.pre-install +++ b/testing/nut/nut.pre-install @@ -1,5 +1,10 @@ #!/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 -- cgit v1.2.3