diff options
author | Valery Kartel <valery.kartel@gmail.com> | 2017-04-21 16:37:33 +0300 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2017-06-02 08:02:44 +0000 |
commit | 2275192021130da8e3bed22be2cd653ce9793a47 (patch) | |
tree | d334efe6a5bb25a24c2462d72e973071c06b3a0d /testing/nut/nut.pre-install | |
parent | 1d0d9aded485e650569d95c479574a1ffc6fdb9a (diff) | |
download | aports-2275192021130da8e3bed22be2cd653ce9793a47.tar.bz2 aports-2275192021130da8e3bed22be2cd653ce9793a47.tar.xz |
testing/nut: fix user creation in post-install
--
add nut home dir /var/lib/nut used for scheduler
fix libexec and driver dirs (libexec -> lib)
add using dns in init-scripts
remove conf.d files from package because it have no sence for now
cleanups in APKBUILD and init-scripts
Diffstat (limited to 'testing/nut/nut.pre-install')
-rw-r--r-- | testing/nut/nut.pre-install | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/testing/nut/nut.pre-install b/testing/nut/nut.pre-install index 2e3c642ca9..6d67c81a67 100644 --- a/testing/nut/nut.pre-install +++ b/testing/nut/nut.pre-install @@ -1,10 +1,7 @@ #!/bin/sh -if ! getent passwd nut; then - addgroup -S -g 84 nut 2>/dev/null - adduser -SDH -u 84 -h /run/nut -s /sbin/nologin -g nut nut 2>/dev/null -fi - +addgroup -S nut 2>/dev/null +adduser -S -D -H -h /var/lib/nut -s /sbin/nologin -G nut -g nut nut 2>/dev/null adduser nut uucp 2>/dev/null exit 0 |