diff options
author | Valery Kartel <valery.kartel@gmail.com> | 2016-06-13 17:29:29 +0300 |
---|---|---|
committer | Bartłomiej Piotrowski <b@bpiotrowski.pl> | 2016-07-07 11:38:04 +0200 |
commit | e409857fde32cd84d3f9de1c169336ee0d071e92 (patch) | |
tree | b8920ba6373b1a4b909d43d1236f131acf4f1c7c /testing/nut/nut.pre-install | |
parent | f1ec1ed9cc65d443bd48756b40eff58466c87b80 (diff) | |
download | aports-e409857fde32cd84d3f9de1c169336ee0d071e92.tar.bz2 aports-e409857fde32cd84d3f9de1c169336ee0d071e92.tar.xz |
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.
Diffstat (limited to 'testing/nut/nut.pre-install')
-rw-r--r-- | testing/nut/nut.pre-install | 5 |
1 files changed, 5 insertions, 0 deletions
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 |