diff options
177 files changed, 318 insertions, 150 deletions
diff --git a/community/caddy/caddy.pre-install b/community/caddy/caddy.pre-install index 7bf003d657a..dc783503886 100644 --- a/community/caddy/caddy.pre-install +++ b/community/caddy/caddy.pre-install @@ -1,4 +1,6 @@ #!/bin/sh + adduser -S -h /var/lib/caddy -D -s /sbin/nologin -g caddy caddy 2>/dev/null adduser caddy www-data 2>/dev/null + exit 0 diff --git a/community/davfs2/davfs2.pre-install b/community/davfs2/davfs2.pre-install index 062477c7fd9..2accd542329 100755 --- a/community/davfs2/davfs2.pre-install +++ b/community/davfs2/davfs2.pre-install @@ -1,6 +1,5 @@ #!/bin/sh -if ! getent group davfs2 >/dev/null; then - addgroup -S davfs2 -fi +addgroup -S davfs2 2>/dev/null + exit 0 diff --git a/community/docker-registry/docker-registry.pre-install b/community/docker-registry/docker-registry.pre-install index 3bc3eabc986..5d1fbbbed3b 100644 --- a/community/docker-registry/docker-registry.pre-install +++ b/community/docker-registry/docker-registry.pre-install @@ -2,4 +2,5 @@ addgroup -S docker-registry 2>/dev/null adduser -S -H -h /dev/null -s /sbin/nologin -D -G docker-registry -g docker-registry docker-registry 2>/dev/null + exit 0 diff --git a/community/docker/docker.pre-install b/community/docker/docker.pre-install index 8a1dec6f2a4..8cd2d63f347 100644 --- a/community/docker/docker.pre-install +++ b/community/docker/docker.pre-install @@ -1,6 +1,5 @@ #!/bin/sh -if ! getent group docker >/dev/null; then - addgroup -S docker -fi +addgroup -S docker 2>/dev/null + exit 0 diff --git a/community/domoticz/domoticz.pre-install b/community/domoticz/domoticz.pre-install index 077e0faf809..5162f883856 100644 --- a/community/domoticz/domoticz.pre-install +++ b/community/domoticz/domoticz.pre-install @@ -1,3 +1,5 @@ #!/bin/sh + adduser -S -h /var/lib/domoticz -D -s /sbin/nologin -g domoticz domoticz 2>/dev/null + exit 0 diff --git a/community/icinga2/icinga2.pre-install b/community/icinga2/icinga2.pre-install index e84e09e0c68..7b0002ce346 100644 --- a/community/icinga2/icinga2.pre-install +++ b/community/icinga2/icinga2.pre-install @@ -1,6 +1,8 @@ #!/bin/sh + addgroup -S icinga 2>/dev/null addgroup -S icingacmd 2>/dev/null adduser -S -G icinga -H -h /var/spool/icinga2 -s /sbin/nologin -D -g icinga icinga 2>/dev/null -adduser icinga icingacmd 2>/dev/null 2>/dev/null +adduser icinga icingacmd 2>/dev/null + exit 0 diff --git a/community/minetest/minetest-server.pre-install b/community/minetest/minetest-server.pre-install index 4cde63921eb..da9a0259594 100644 --- a/community/minetest/minetest-server.pre-install +++ b/community/minetest/minetest-server.pre-install @@ -1,3 +1,5 @@ #!/bin/sh + adduser -S -s /sbin/nologin -D -h /var/lib/minetest -g minetest minetest games 2>/dev/null + exit 0 diff --git a/community/oscam/oscam.pre-install b/community/oscam/oscam.pre-install index 2f5f5d9d4dd..4e0c49a166b 100644 --- a/community/oscam/oscam.pre-install +++ b/community/oscam/oscam.pre-install @@ -1,4 +1,6 @@ #!/bin/sh + adduser -S -H -D -s /sbin/nologin -g oscam oscam 2>/dev/null addgroup oscam usb 2>/dev/null + exit 0 diff --git a/community/seafile/seafile-server.pre-install b/community/seafile/seafile-server.pre-install index 66e7a2ccff7..b5c1b4f64e1 100644 --- a/community/seafile/seafile-server.pre-install +++ b/community/seafile/seafile-server.pre-install @@ -4,4 +4,5 @@ SEAFILE_HOME=/var/lib/seafile addgroup -S -g 800 seafile 2>/dev/null adduser -S -h $SEAFILE_HOME -s /bin/sh -G seafile -g seafile -u 800 -D seafile 2>/dev/null + exit 0 diff --git a/community/smstools/smstools.pre-install b/community/smstools/smstools.pre-install index d9e1d36963c..0a5106f6e58 100755 --- a/community/smstools/smstools.pre-install +++ b/community/smstools/smstools.pre-install @@ -1,5 +1,7 @@ #!/bin/sh -addgroup -S smsd &>/dev/null -adduser -S -h /var/spool/sms -s /sbin/nologin -G smsd -D -g smsd smsd &>/dev/null -adduser -G uucp smsd &>/dev/null + +addgroup -S smsd 2>/dev/null +adduser -S -h /var/spool/sms -s /sbin/nologin -G smsd -D -g smsd smsd 2>/dev/null +adduser -G uucp smsd 2>/dev/null + exit 0 diff --git a/community/sniproxy/sniproxy.pre-install b/community/sniproxy/sniproxy.pre-install index c56f31de536..aa2f7dfca5a 100644 --- a/community/sniproxy/sniproxy.pre-install +++ b/community/sniproxy/sniproxy.pre-install @@ -1,4 +1,6 @@ #!/bin/sh + addgroup -S sniproxy 2>/dev/null adduser -S -h /var/log/sniproxy -s /bin/false -D -g sniproxy sniproxy 2>/dev/null + exit 0 diff --git a/community/sword/sword.pre-install b/community/sword/sword.pre-install index d8abdb59bfe..2ebce6d5640 100755 --- a/community/sword/sword.pre-install +++ b/community/sword/sword.pre-install @@ -1,3 +1,6 @@ #!/bin/sh + echo "Adding 'sword' group for installing SWORD modules systemwide" -addgroup -S sword 2>/dev/null >&2 || true +addgroup -S sword 2>/dev/null + +exit 0 diff --git a/community/syncthing/syncthing.pre-install b/community/syncthing/syncthing.pre-install index 002a54f3dea..ab337cca31e 100644 --- a/community/syncthing/syncthing.pre-install +++ b/community/syncthing/syncthing.pre-install @@ -1,3 +1,5 @@ #!/bin/sh + adduser -S -H -h /var/lib/syncthing -s /sbin/nologin -D -g syncthing syncthing 2>/dev/null + exit 0 diff --git a/community/tvheadend/tvheadend.pre-install b/community/tvheadend/tvheadend.pre-install index 6fee0b4e056..6b64423424c 100644 --- a/community/tvheadend/tvheadend.pre-install +++ b/community/tvheadend/tvheadend.pre-install @@ -1,4 +1,6 @@ #!/bin/sh + adduser -S -G video -s /sbin/nologin -H -h /usr/share/tvheadend -g tvheadend tvheadend 2>/dev/null addgroup tvheadend usb 2>/dev/null + exit 0 diff --git a/main/abuild/abuild.pre-install b/main/abuild/abuild.pre-install index fb2cf9e31db..fd3d39a3687 100644 --- a/main/abuild/abuild.pre-install +++ b/main/abuild/abuild.pre-install @@ -1,6 +1,5 @@ #!/bin/sh -if ! getent group abuild >/dev/null; then - addgroup -S abuild -fi +addgroup -S abuild 2>/dev/null + exit 0 diff --git a/main/alpine-baselayout/alpine-baselayout.pre-install b/main/alpine-baselayout/alpine-baselayout.pre-install index 3b9f1410836..fc0d0b9f5da 100644 --- a/main/alpine-baselayout/alpine-baselayout.pre-install +++ b/main/alpine-baselayout/alpine-baselayout.pre-install @@ -1,6 +1,5 @@ #!/bin/sh -if [ -e /etc/group ] && ! grep -q '^shadow:' /etc/group; then - addgroup -S -g 42 shadow -fi +addgroup -S -g 42 shadow 2>/dev/null +exit 0 diff --git a/main/alpine-baselayout/alpine-baselayout.pre-upgrade b/main/alpine-baselayout/alpine-baselayout.pre-upgrade index 8a7098f7d1c..f7c8db83c41 100644 --- a/main/alpine-baselayout/alpine-baselayout.pre-upgrade +++ b/main/alpine-baselayout/alpine-baselayout.pre-upgrade @@ -14,6 +14,6 @@ for i in /etc/modprobe.d/*; do mv "$i" "$i".conf done -if [ -e /etc/group ] && ! grep -q '^shadow:' /etc/group; then - addgroup -S -g 42 shadow -fi +addgroup -S -g 42 shadow 2>/dev/null + +exit 0 diff --git a/main/amavisd-new/amavisd-new.pre-install b/main/amavisd-new/amavisd-new.pre-install index d0c07006d0b..5223f9fb206 100755 --- a/main/amavisd-new/amavisd-new.pre-install +++ b/main/amavisd-new/amavisd-new.pre-install @@ -2,5 +2,5 @@ addgroup -S amavis 2>/dev/null adduser -S -D -G amavis -h /var/amavis -s /sbin/nologin -g amavis amavis 2>/dev/null -exit 0 +exit 0 diff --git a/main/apache2/apache2.pre-install b/main/apache2/apache2.pre-install index cb803238f0e..f142d894e6a 100644 --- a/main/apache2/apache2.pre-install +++ b/main/apache2/apache2.pre-install @@ -1,5 +1,7 @@ #!/bin/sh + addgroup -S -g 82 www-data 2>/dev/null adduser -S -H -h /var/www -s /sbin/nologin -D -g apache apache 2>/dev/null addgroup apache www-data 2>/dev/null + exit 0 diff --git a/main/apache2/apache2.pre-upgrade b/main/apache2/apache2.pre-upgrade index dbc1d68e438..bb3dba99cbd 100644 --- a/main/apache2/apache2.pre-upgrade +++ b/main/apache2/apache2.pre-upgrade @@ -2,4 +2,5 @@ addgroup -S -g 82 www-data 2>/dev/null addgroup apache www-data 2>/dev/null + exit 0 diff --git a/main/aports-build/aports-build.pre-install b/main/aports-build/aports-build.pre-install index a4928ebe7b6..2fdf497dd5d 100644 --- a/main/aports-build/aports-build.pre-install +++ b/main/aports-build/aports-build.pre-install @@ -1,4 +1,5 @@ #!/bin/sh adduser -S -D -g buildozer buildozer -s /bin/sh 2>/dev/null + exit 0 diff --git a/main/arpwatch/arpwatch.pre-install b/main/arpwatch/arpwatch.pre-install index d75874fc45e..56fdfe34e03 100644 --- a/main/arpwatch/arpwatch.pre-install +++ b/main/arpwatch/arpwatch.pre-install @@ -1,4 +1,5 @@ #!/bin/sh + adduser -S -H -s /sbin/nologin -D -g arpwatch arpwatch 2>/dev/null -exit 0 +exit 0 diff --git a/main/asterisk/asterisk.pre-install b/main/asterisk/asterisk.pre-install index 935466dde0d..df228c28b6f 100644 --- a/main/asterisk/asterisk.pre-install +++ b/main/asterisk/asterisk.pre-install @@ -3,4 +3,5 @@ adduser -S -h /var/lib/asterisk -s /sbin/nologin -D -g asterisk asterisk 2>/dev/null addgroup -S dialout 2>/dev/null addgroup asterisk dialout 2>/dev/null + exit 0 diff --git a/main/asterisk/asterisk.pre-upgrade b/main/asterisk/asterisk.pre-upgrade index 781d5d88782..02414e674ba 100644 --- a/main/asterisk/asterisk.pre-upgrade +++ b/main/asterisk/asterisk.pre-upgrade @@ -3,4 +3,5 @@ adduser -S -h /var/lib/asterisk -s /bin/false -D -g asterisk asterisk 2>/dev/null addgroup -S dialout 2>/dev/null addgroup asterisk dialout 2>/dev/null + exit 0 diff --git a/main/atheme-iris/atheme-iris.pre-install b/main/atheme-iris/atheme-iris.pre-install index 4198df244dd..ef8ea56f517 100644 --- a/main/atheme-iris/atheme-iris.pre-install +++ b/main/atheme-iris/atheme-iris.pre-install @@ -1,4 +1,5 @@ #!/bin/sh + adduser -S -H -h /usr/share/webapps/atheme-iris -g iris -D -s /sbin/nologin iris >/dev/null -exit 0 +exit 0 diff --git a/main/backuppc/backuppc.pre-install b/main/backuppc/backuppc.pre-install index 32440ee678d..2ed220e00c8 100644 --- a/main/backuppc/backuppc.pre-install +++ b/main/backuppc/backuppc.pre-install @@ -1,4 +1,6 @@ #!/bin/sh -addgroup -S backuppc &>/dev/null -adduser -S -h /var/lib/BackupPC -s /bin/sh -D -H -G backuppc -g "BackupPC user" backuppc &>/dev/null + +addgroup -S backuppc 2>/dev/null +adduser -S -h /var/lib/BackupPC -s /bin/sh -D -H -G backuppc -g "BackupPC user" backuppc 2>/dev/null + exit 0 diff --git a/main/bacula-client/bacula-client.pre-install b/main/bacula-client/bacula-client.pre-install index 7827de6015b..363af9d9648 100644 --- a/main/bacula-client/bacula-client.pre-install +++ b/main/bacula-client/bacula-client.pre-install @@ -1,4 +1,6 @@ #!/bin/sh + addgroup -S bacula 2>/dev/null adduser -S -h /var/lib/bacula/ -s /sbin/nologin -G bacula -D -g bacula bacula 2>/dev/null + exit 0 diff --git a/main/bacula/bacula.pre-install b/main/bacula/bacula.pre-install index 7827de6015b..363af9d9648 100644 --- a/main/bacula/bacula.pre-install +++ b/main/bacula/bacula.pre-install @@ -1,4 +1,6 @@ #!/bin/sh + addgroup -S bacula 2>/dev/null adduser -S -h /var/lib/bacula/ -s /sbin/nologin -G bacula -D -g bacula bacula 2>/dev/null + exit 0 diff --git a/main/bind/bind.pre-install b/main/bind/bind.pre-install index 116d51eec88..49e398b89f4 100644 --- a/main/bind/bind.pre-install +++ b/main/bind/bind.pre-install @@ -2,5 +2,5 @@ addgroup -S named 2>/dev/null adduser -S -h /etc/bind -s /sbin/nologin -G named -D -g named named 2>/dev/null -exit 0 +exit 0 diff --git a/main/charybdis/charybdis.pre-install b/main/charybdis/charybdis.pre-install index 83ffff31285..2dab19bc87c 100644 --- a/main/charybdis/charybdis.pre-install +++ b/main/charybdis/charybdis.pre-install @@ -1,3 +1,5 @@ #!/bin/sh + adduser -S -h /var/run/charybdis -s /sbin/nologin -D -g ircd ircd 2>/dev/null + exit 0 diff --git a/main/chrony/chrony.pre-install b/main/chrony/chrony.pre-install index 41e01c6ca99..32b8fe3c314 100644 --- a/main/chrony/chrony.pre-install +++ b/main/chrony/chrony.pre-install @@ -2,4 +2,5 @@ addgroup -S chrony 2>/dev/null adduser -S -G chrony -h /var/log/chrony -s /sbin/nologin -D -g chrony chrony 2>/dev/null + exit 0 diff --git a/main/clamav/clamav-daemon.pre-install b/main/clamav/clamav-daemon.pre-install index 5ef833a7a67..0442c39fa24 100644 --- a/main/clamav/clamav-daemon.pre-install +++ b/main/clamav/clamav-daemon.pre-install @@ -2,4 +2,5 @@ addgroup -S clamav 2>/dev/null adduser -S -h /var/lib/clamav -H -s /sbin/nologin -D -G clamav -g clamav clamav 2>/dev/null + exit 0 diff --git a/main/clamav/clamav-db.pre-install b/main/clamav/clamav-db.pre-install index f46eabe8b06..b442a43cfd2 100644 --- a/main/clamav/clamav-db.pre-install +++ b/main/clamav/clamav-db.pre-install @@ -1,4 +1,5 @@ #!/bin/sh adduser -S -H -s /sbin/nologin -D -g clamav clamav 2>/dev/null + exit 0 diff --git a/main/clamav/freshclam.pre-install b/main/clamav/freshclam.pre-install index 5ef833a7a67..0442c39fa24 100644 --- a/main/clamav/freshclam.pre-install +++ b/main/clamav/freshclam.pre-install @@ -2,4 +2,5 @@ addgroup -S clamav 2>/dev/null adduser -S -h /var/lib/clamav -H -s /sbin/nologin -D -G clamav -g clamav clamav 2>/dev/null + exit 0 diff --git a/main/clamsmtp/clamsmtp.pre-install b/main/clamsmtp/clamsmtp.pre-install index f46eabe8b06..b442a43cfd2 100644 --- a/main/clamsmtp/clamsmtp.pre-install +++ b/main/clamsmtp/clamsmtp.pre-install @@ -1,4 +1,5 @@ #!/bin/sh adduser -S -H -s /sbin/nologin -D -g clamav clamav 2>/dev/null + exit 0 diff --git a/main/clamsmtp/clamsmtp.pre-upgrade b/main/clamsmtp/clamsmtp.pre-upgrade index c673e278ec2..a58c1651000 100644 --- a/main/clamsmtp/clamsmtp.pre-upgrade +++ b/main/clamsmtp/clamsmtp.pre-upgrade @@ -11,4 +11,5 @@ if [ -f "$old" ] && [ ! -f "$new" ]; then fi adduser -S -H -s /bin/false -D -g clamav clamav 2>/dev/null + exit 0 diff --git a/main/coova-chilli/coova-chilli.pre-install b/main/coova-chilli/coova-chilli.pre-install index 15de617e501..65624f364c6 100644 --- a/main/coova-chilli/coova-chilli.pre-install +++ b/main/coova-chilli/coova-chilli.pre-install @@ -1,4 +1,5 @@ #!/bin/sh + adduser -S -H -s /sbin/nologin -D -g chilli chilli 2>/dev/null -exit 0 +exit 0 diff --git a/main/cups/cups.pre-install b/main/cups/cups.pre-install index 4b099d8a269..cdb75cac568 100644 --- a/main/cups/cups.pre-install +++ b/main/cups/cups.pre-install @@ -4,4 +4,5 @@ addgroup -S lpadmin 2>/dev/null addgroup -S lp 2>/dev/null adduser -S -G lp -g lp lp 2>/dev/null addgroup lp lp 2>/dev/null + exit 0 diff --git a/main/cvechecker/cvechecker.pre-install b/main/cvechecker/cvechecker.pre-install index b6981179abe..7cc6f41899d 100644 --- a/main/cvechecker/cvechecker.pre-install +++ b/main/cvechecker/cvechecker.pre-install @@ -1,3 +1,6 @@ #!/bin/sh -addgroup -S cvechecker &>/dev/null -adduser -S -g cvechecker cvechecker -h /var/cvechecker -DG cvechecker &>/dev/null + +addgroup -S cvechecker 2>/dev/null +adduser -S -g cvechecker cvechecker -h /var/cvechecker -DG cvechecker 2>/dev/null + +exit 0 diff --git a/main/dansguardian/dansguardian.pre-install b/main/dansguardian/dansguardian.pre-install index e897f8c83ce..201fdfc4089 100644 --- a/main/dansguardian/dansguardian.pre-install +++ b/main/dansguardian/dansguardian.pre-install @@ -6,5 +6,6 @@ adduser -S -D -H \ -s /sbin/nologin \ -G dansguar \ -g dansguar \ - dansguar 2>/dev/null || true + dansguar 2>/dev/null +exit 0 diff --git a/main/dbus/dbus.pre-install b/main/dbus/dbus.pre-install index 7fdb08a6912..c736ea0b91a 100644 --- a/main/dbus/dbus.pre-install +++ b/main/dbus/dbus.pre-install @@ -2,4 +2,5 @@ addgroup -S messagebus 2>/dev/null adduser -S -H -h /dev/null -s /sbin/nologin -D -g messagebus messagebus -G messagebus 2>/dev/null + exit 0 diff --git a/main/dhcp/dhcp.pre-install b/main/dhcp/dhcp.pre-install index 5aaa6c4b7b6..83ba7f045e3 100644 --- a/main/dhcp/dhcp.pre-install +++ b/main/dhcp/dhcp.pre-install @@ -1,5 +1,5 @@ #!/bin/sh adduser -S -h /var/lib/dhcp -s /sbin/nologin -D -g dhcp dhcp 2>/dev/null -exit 0 +exit 0 diff --git a/main/distcc/distcc.pre-install b/main/distcc/distcc.pre-install index b408b4a1270..15d591dd1d2 100644 --- a/main/distcc/distcc.pre-install +++ b/main/distcc/distcc.pre-install @@ -2,4 +2,5 @@ addgroup -S distcc 2>/dev/null adduser -S -H -h /dev/null -s /sbin/nologin -G distcc -D -g distcc distcc 2>/dev/null + exit 0 diff --git a/main/djbdns/dnscache.pre-install b/main/djbdns/dnscache.pre-install index 106fc292cb4..1b58fffa1cf 100644 --- a/main/djbdns/dnscache.pre-install +++ b/main/djbdns/dnscache.pre-install @@ -1,5 +1,5 @@ #!/bin/sh adduser -S -h /etc/dnscache -g dnscache -s /sbin/nologin -H -D dnscache 2>/dev/null -exit 0 +exit 0 diff --git a/main/djbdns/tinydns.pre-install b/main/djbdns/tinydns.pre-install index 8676fb4104a..094f0d8fc29 100644 --- a/main/djbdns/tinydns.pre-install +++ b/main/djbdns/tinydns.pre-install @@ -1,5 +1,5 @@ #!/bin/sh adduser -S -h /etc/tinydns -g tinydns -s /sbin/nologin -H -D tinydns 2>/dev/null -exit 0 +exit 0 diff --git a/main/dnsmasq/dnsmasq.pre-install b/main/dnsmasq/dnsmasq.pre-install index 43f60b8e6b3..1263e54e0f9 100644 --- a/main/dnsmasq/dnsmasq.pre-install +++ b/main/dnsmasq/dnsmasq.pre-install @@ -2,4 +2,5 @@ addgroup -S dnsmasq 2>/dev/null adduser -S -H -h /dev/null -s /sbin/nologin -G dnsmasq -D -g dnsmasq dnsmasq 2>/dev/null + exit 0 diff --git a/main/dovecot/dovecot.pre-install b/main/dovecot/dovecot.pre-install index 481132bf702..d3c346867e2 100644 --- a/main/dovecot/dovecot.pre-install +++ b/main/dovecot/dovecot.pre-install @@ -2,4 +2,5 @@ adduser -S -u 90 -H -h /dev/null -s /sbin/nologin -D -g dovecot dovecot 2>/dev/null adduser -S -u 91 -H -h /dev/null -s /sbin/nologin -D -g dovenull dovenull 2>/dev/null + exit 0 diff --git a/main/ez-ipupdate/ez-ipupdate.pre-install b/main/ez-ipupdate/ez-ipupdate.pre-install index 23d9faef738..b6b7e222132 100644 --- a/main/ez-ipupdate/ez-ipupdate.pre-install +++ b/main/ez-ipupdate/ez-ipupdate.pre-install @@ -1,5 +1,5 @@ #!/bin/sh adduser -S -h /var/lib/ez-ipupdate -s /sbin/nologin -D -g ipupdate ipupdate 2>/dev/null -exit 0 +exit 0 diff --git a/main/fetchmail/fetchmail.pre-install b/main/fetchmail/fetchmail.pre-install index 67681f8edaa..d9c1aed834c 100644 --- a/main/fetchmail/fetchmail.pre-install +++ b/main/fetchmail/fetchmail.pre-install @@ -1,4 +1,5 @@ #!/bin/sh adduser -S -H -h /var/lib/fetchmail -s /sbin/nologin -D -g fetchmail fetchmail 2>/dev/null + exit 0 diff --git a/main/freeradius/freeradius.pre-install b/main/freeradius/freeradius.pre-install index f02c2c07bbe..8b090327209 100644 --- a/main/freeradius/freeradius.pre-install +++ b/main/freeradius/freeradius.pre-install @@ -2,5 +2,5 @@ addgroup -S radius 2>/dev/null adduser -S -G radius -h /var/log/radius -s /sbin/nologin -D -g radius radius 2>/dev/null -exit 0 +exit 0 diff --git a/main/gdnsd/gdnsd.pre-install b/main/gdnsd/gdnsd.pre-install index 040e7f11df3..8e8af592f48 100644 --- a/main/gdnsd/gdnsd.pre-install +++ b/main/gdnsd/gdnsd.pre-install @@ -2,4 +2,5 @@ addgroup -S gdnsd 2>/dev/null adduser -S -H -h /dev/null -s /sbin/nologin -D -G gdnsd -g gdnsd gdnsd 2>/dev/null + exit 0 diff --git a/main/gitolite/gitolite.pre-install b/main/gitolite/gitolite.pre-install index 2d155abb288..80a3a714c35 100644 --- a/main/gitolite/gitolite.pre-install +++ b/main/gitolite/gitolite.pre-install @@ -1,3 +1,5 @@ #!/bin/sh + adduser -S -H -h /var/lib/git -s /bin/sh -D -g git git 2>/dev/null + exit 0 diff --git a/main/gnats/gnats.pre-install b/main/gnats/gnats.pre-install index 81093a42a18..a66e2d903db 100644 --- a/main/gnats/gnats.pre-install +++ b/main/gnats/gnats.pre-install @@ -1,4 +1,5 @@ #!/bin/sh adduser -S -h /var/lib/gnatsdb -D -g gnats gnats 2>/dev/null + exit 0 diff --git a/main/gross/gross.pre-install b/main/gross/gross.pre-install index d3a5f857beb..22fecf465e3 100644 --- a/main/gross/gross.pre-install +++ b/main/gross/gross.pre-install @@ -1,3 +1,5 @@ #!/bin/sh + adduser -S -H -s /sbin/nologin -D -g gross gross 2>/dev/null + exit 0 diff --git a/main/haproxy/haproxy.pre-install b/main/haproxy/haproxy.pre-install index 72b8ab0087a..162855ab33c 100644 --- a/main/haproxy/haproxy.pre-install +++ b/main/haproxy/haproxy.pre-install @@ -10,3 +10,4 @@ if [ -e /etc/haproxy.cfg ] && ! [ -e /etc/haproxy/haproxy.cfg ]; then mv /etc/haproxy.cfg /etc/haproxy/haproxy.cfg fi +exit 0 diff --git a/main/haproxy/haproxy.pre-upgrade b/main/haproxy/haproxy.pre-upgrade index 72b8ab0087a..162855ab33c 100644 --- a/main/haproxy/haproxy.pre-upgrade +++ b/main/haproxy/haproxy.pre-upgrade @@ -10,3 +10,4 @@ if [ -e /etc/haproxy.cfg ] && ! [ -e /etc/haproxy/haproxy.cfg ]; then mv /etc/haproxy.cfg /etc/haproxy/haproxy.cfg fi +exit 0 diff --git a/main/icecast/icecast.pre-install b/main/icecast/icecast.pre-install index 8734c1e13df..562611b6660 100644 --- a/main/icecast/icecast.pre-install +++ b/main/icecast/icecast.pre-install @@ -1,5 +1,5 @@ #!/bin/sh -adduser -S -h /var/log/icecast -s /sbin/nologin -D -g icecast icecast 2>/dev/null +adduser -S -h /var/log/icecast -s /sbin/nologin -D -g icecast icecast 2>/dev/null exit 0 diff --git a/main/ircservices/ircservices.pre-install b/main/ircservices/ircservices.pre-install index 4f6144a9509..2f08491d543 100644 --- a/main/ircservices/ircservices.pre-install +++ b/main/ircservices/ircservices.pre-install @@ -1,5 +1,5 @@ #!/bin/sh adduser -S -h /var/lib/ircservices -s /sbin/nologin -D -g ircservices ircservices 2>/dev/null -exit 0 +exit 0 diff --git a/main/kamailio/kamailio.pre-install b/main/kamailio/kamailio.pre-install index 19d11f5c2f1..e38239dd6f0 100644 --- a/main/kamailio/kamailio.pre-install +++ b/main/kamailio/kamailio.pre-install @@ -1,6 +1,6 @@ #!/bin/sh addgroup -S kamailio 2>/dev/null -adduser -S -H -h /var/empty -s /sbin/nologin -D -G kamailio -g kamailio kamailio 2>/dev/null +adduser -S -H -h /var/empty -s /sbin/nologin -D -G kamailio -g kamailio kamailio 2>/dev/null exit 0 diff --git a/main/libgphoto2/libgphoto2.pre-install b/main/libgphoto2/libgphoto2.pre-install index a7d31448b88..c696fcdcaf1 100644 --- a/main/libgphoto2/libgphoto2.pre-install +++ b/main/libgphoto2/libgphoto2.pre-install @@ -1,6 +1,5 @@ #!/bin/sh -if ! getent group camera >/dev/null; then - addgroup -S camera -fi +addgroup -S camera 2>/dev/null +exit 0 diff --git a/main/libvirt/libvirt.post-install b/main/libvirt/libvirt.post-install index 0be14b9e587..a7477012d38 100755 --- a/main/libvirt/libvirt.post-install +++ b/main/libvirt/libvirt.post-install @@ -1,3 +1,5 @@ #!/bin/sh -addgroup -S libvirt &>/dev/null + +addgroup -S libvirt 2>/dev/null + exit 0 diff --git a/main/logcheck/logcheck.pre-install b/main/logcheck/logcheck.pre-install index ea6028c49aa..818fda5f029 100644 --- a/main/logcheck/logcheck.pre-install +++ b/main/logcheck/logcheck.pre-install @@ -2,4 +2,5 @@ addgroup -S logcheck 2>/dev/null adduser -S -H -h /dev/null -s /sbin/nologin -D -G logcheck -g logcheck logcheck 2>/dev/null + exit 0 diff --git a/main/mariadb/mariadb.pre-install b/main/mariadb/mariadb.pre-install index e4f16d2ddc0..14677b1fb60 100644 --- a/main/mariadb/mariadb.pre-install +++ b/main/mariadb/mariadb.pre-install @@ -2,5 +2,5 @@ addgroup -S mysql 2>/dev/null adduser -S -h /var/lib/mysql -s /sbin/nologin -G mysql -D -g mysql mysql 2>/dev/null -exit 0 +exit 0 diff --git a/main/memcached/memcached.pre-install b/main/memcached/memcached.pre-install index df22cd5fdd5..4440f4ee1a4 100644 --- a/main/memcached/memcached.pre-install +++ b/main/memcached/memcached.pre-install @@ -1,5 +1,5 @@ #!/bin/sh adduser -S -H -s /sbin/nologin -D -g memcached memcached 2>/dev/null -exit 0 +exit 0 diff --git a/main/minidlna/minidlna.pre-install b/main/minidlna/minidlna.pre-install index 4423a73e637..4fc20e601dd 100644 --- a/main/minidlna/minidlna.pre-install +++ b/main/minidlna/minidlna.pre-install @@ -3,4 +3,5 @@ addgroup -S minidlna 2>/dev/null adduser -S -H -h /var/run/minidlna -s /sbin/nologin -D -G minidlna \ -g minidlna minidlna 2>/dev/null + exit 0 diff --git a/main/mlmmj/mlmmj.pre-install b/main/mlmmj/mlmmj.pre-install index 046a821dc57..7a7b32c0fae 100644 --- a/main/mlmmj/mlmmj.pre-install +++ b/main/mlmmj/mlmmj.pre-install @@ -2,4 +2,5 @@ addgroup -S mlmmj 2>/dev/null adduser -S -H -h /var/spool/mlmmj -s /sbin/nologin -D -G mlmmj -g mlmmj mlmmj 2>/dev/null + exit 0 diff --git a/main/mosquitto/mosquitto.pre-install b/main/mosquitto/mosquitto.pre-install index a0a8f7269bb..518d9f2443f 100644 --- a/main/mosquitto/mosquitto.pre-install +++ b/main/mosquitto/mosquitto.pre-install @@ -2,4 +2,5 @@ addgroup -S mosquitto 2>/dev/null adduser -S -H -h /var/empty -s /sbin/nologin -D -G mosquitto -g mosquitto mosquitto 2>/dev/null + exit 0 diff --git a/main/mpd/mpd.pre-install b/main/mpd/mpd.pre-install index 7e012f89835..934307b65a2 100644 --- a/main/mpd/mpd.pre-install +++ b/main/mpd/mpd.pre-install @@ -1,3 +1,5 @@ #!/bin/sh -adduser -S -h /var/lib/mpd -s /sbin/nologin -G audio -D -g mpd mpd 2>/dev/null || true +adduser -S -h /var/lib/mpd -s /sbin/nologin -G audio -D -g mpd mpd 2>/dev/null + +exit 0 diff --git a/main/mumble/murmur.pre-install b/main/mumble/murmur.pre-install index cb0e0ebbaa5..980ed34a63d 100755 --- a/main/mumble/murmur.pre-install +++ b/main/mumble/murmur.pre-install @@ -1,4 +1,6 @@ #!/bin/sh -addgroup -S murmur -adduser -S -h /var/lib/murmur -s /sbin/nologin -G murmur -g "Mumble daemon" -H -D murmur + +addgroup -S murmur 2>/dev/null +adduser -S -h /var/lib/murmur -s /sbin/nologin -G murmur -g "Mumble daemon" -H -D murmur 2>/dev/null + exit 0 diff --git a/main/nagios/nagios.pre-install b/main/nagios/nagios.pre-install index d9c0f3c9f47..2e2dbbfa33c 100644 --- a/main/nagios/nagios.pre-install +++ b/main/nagios/nagios.pre-install @@ -2,4 +2,5 @@ addgroup -S nagios 2>/dev/null adduser -S -G nagios -H -h /var/nagios -s /sbin/nologin -g nagios nagios 2>/dev/null + exit 0 diff --git a/main/ngircd/ngircd.pre-install b/main/ngircd/ngircd.pre-install index 036c9aba8dd..bb5f05a03b4 100644 --- a/main/ngircd/ngircd.pre-install +++ b/main/ngircd/ngircd.pre-install @@ -1,4 +1,5 @@ #!/bin/sh adduser -S -H -h /etc/ngircd -s /sbin/nologin -D -g ngircd ngircd 2>/dev/null + exit 0 diff --git a/main/nrpe/nrpe.pre-install b/main/nrpe/nrpe.pre-install index 7ee629b5874..e00f960454f 100644 --- a/main/nrpe/nrpe.pre-install +++ b/main/nrpe/nrpe.pre-install @@ -2,4 +2,5 @@ adduser -S -H -h /dev/null -s /sbin/nologin -D -g nagios nagios 2>/dev/null addgroup -S nagios 2>/dev/null + exit 0 diff --git a/main/nsd/nsd.pre-install b/main/nsd/nsd.pre-install index 106ac00ccd7..a94f6e083f2 100644 --- a/main/nsd/nsd.pre-install +++ b/main/nsd/nsd.pre-install @@ -1,4 +1,6 @@ #!/bin/sh + addgroup -S nsd 2>/dev/null adduser -S -G nsd -H -h /var/db/nsd -s /sbin/nologin -g nsd nsd 2>/dev/null + exit 0 diff --git a/main/nss-pam-ldapd/nss-pam-ldapd.pre-install b/main/nss-pam-ldapd/nss-pam-ldapd.pre-install index 5a7076fa8a9..58b4216dc31 100644 --- a/main/nss-pam-ldapd/nss-pam-ldapd.pre-install +++ b/main/nss-pam-ldapd/nss-pam-ldapd.pre-install @@ -6,4 +6,5 @@ groupname=$username addgroup -S $username 2>/dev/null adduser -S -H -h /var/run/$username -s /sbin/nologin -D -G $groupname \ -g $username $username 2>/dev/null + exit 0 diff --git a/main/ntop/ntop.pre-install b/main/ntop/ntop.pre-install index 2386dc80698..9af92bb5d7d 100755 --- a/main/ntop/ntop.pre-install +++ b/main/ntop/ntop.pre-install @@ -1,4 +1,6 @@ #!/bin/sh + addgroup -S ntop 2>/dev/null adduser -S -h /var/lib/ntop -s /sbin/nologin -G ntop -H -D -g ntop ntop 2>/dev/null + exit 0 diff --git a/main/open-vm-tools/open-vm-tools.pre-install b/main/open-vm-tools/open-vm-tools.pre-install index 15fbca33b86..39b48503907 100644 --- a/main/open-vm-tools/open-vm-tools.pre-install +++ b/main/open-vm-tools/open-vm-tools.pre-install @@ -1,4 +1,5 @@ #!/bin/sh + addgroup -S vmware 2>/dev/null -exit 0 +exit 0 diff --git a/main/openntpd/openntpd.pre-install b/main/openntpd/openntpd.pre-install index 997e7bf8269..c3d9986a655 100644 --- a/main/openntpd/openntpd.pre-install +++ b/main/openntpd/openntpd.pre-install @@ -2,6 +2,6 @@ # this user should be included in alpine-baselayout-1.2. # included here for backward compability. -adduser -S -H -h /var/empty -s /sbin/nologin -D -g ntp ntp 2>/dev/null +adduser -S -H -h /var/empty -s /sbin/nologin -D -g ntp ntp 2>/dev/null exit 0 diff --git a/main/opensmtpd/opensmtpd.pre-install b/main/opensmtpd/opensmtpd.pre-install index af0620e3db1..8cbebc19a08 100644 --- a/main/opensmtpd/opensmtpd.pre-install +++ b/main/opensmtpd/opensmtpd.pre-install @@ -2,10 +2,8 @@ addgroup -S smtpd 2>/dev/null addgroup -S smtpq 2>/dev/null - adduser -S -H -D -s /sbin/nologin -h /dev/null -g 'SMTP Daemon' -G smtpd smtpd 2>/dev/null adduser -S -H -D -s /sbin/nologin -h /dev/null -g 'SMTPD Queue' -G smtpq smtpq 2>/dev/null - mkdir -p /var/spool/mail exit 0 diff --git a/main/opentracker/opentracker.pre-install b/main/opentracker/opentracker.pre-install index 2e591dbb9de..4a573b27335 100644 --- a/main/opentracker/opentracker.pre-install +++ b/main/opentracker/opentracker.pre-install @@ -1,5 +1,5 @@ #!/bin/sh adduser -S -D -H -h /var/empty -s /sbin/false -g opentracker opentracker 2>/dev/null -exit 0 +exit 0 diff --git a/main/openvpn/openvpn.pre-install b/main/openvpn/openvpn.pre-install index 37e0bf2532d..ff553b811f5 100644 --- a/main/openvpn/openvpn.pre-install +++ b/main/openvpn/openvpn.pre-install @@ -2,4 +2,5 @@ addgroup -S openvpn 2>/dev/null adduser -S -H -h /dev/null -s /sbin/nologin -D -G openvpn -g openvpn openvpn 2>/dev/null + exit 0 diff --git a/main/pcsc-lite/pcsc-lite.pre-install b/main/pcsc-lite/pcsc-lite.pre-install index 192e10e6125..2b9092985ab 100644 --- a/main/pcsc-lite/pcsc-lite.pre-install +++ b/main/pcsc-lite/pcsc-lite.pre-install @@ -6,4 +6,5 @@ groupname=$username addgroup -S $username 2>/dev/null adduser -S -H -h /var/run/$username -s /sbin/nologin -D -G $groupname \ -g $username $username 2>/dev/null + exit 0 diff --git a/main/pdnsd/pdnsd.pre-install b/main/pdnsd/pdnsd.pre-install index b916dab5931..164ef02a444 100644 --- a/main/pdnsd/pdnsd.pre-install +++ b/main/pdnsd/pdnsd.pre-install @@ -1,4 +1,5 @@ #!/bin/sh adduser -S -H -h /var/cache/pdnsd -s /sbin/nologin -g pdnsd pdnsd 2>/dev/null + exit 0 diff --git a/main/postfix/postfix.pre-install b/main/postfix/postfix.pre-install index 6a59570305c..d00c3eb1cd8 100644 --- a/main/postfix/postfix.pre-install +++ b/main/postfix/postfix.pre-install @@ -6,5 +6,4 @@ adduser -S -h /var/spool/postfix -G postfix -g postfix postfix 2>/dev/null addgroup postfix mail 2>/dev/null adduser -S -H -s /sbin/nologin -h /var/mail/domains -G postdrop -g vmail vmail 2>/dev/null - exit 0 diff --git a/main/postgrey/postgrey.pre-install b/main/postgrey/postgrey.pre-install index e745acfa1a3..f70564c42f5 100644 --- a/main/postgrey/postgrey.pre-install +++ b/main/postgrey/postgrey.pre-install @@ -1,6 +1,6 @@ #!/bin/sh addgroup -S postgrey 2>/dev/null -adduser -S -H -h /dev/null -s /sbin/nologin -D -g postgrey postgrey 2>/dev/null +adduser -S -H -h /dev/null -s /sbin/nologin -D -g postgrey postgrey 2>/dev/null exit 0 diff --git a/main/privoxy/privoxy.pre-install b/main/privoxy/privoxy.pre-install index 72b4ac1774e..3f6c75971f7 100644 --- a/main/privoxy/privoxy.pre-install +++ b/main/privoxy/privoxy.pre-install @@ -2,5 +2,5 @@ addgroup -S privoxy 2>/dev/null adduser -S -G privoxy -h /var/log/privoxy -s /sbin/nologin -D -g privoxy privoxy 2>/dev/null -exit 0 +exit 0 diff --git a/main/qemu/qemu.pre-install b/main/qemu/qemu.pre-install index d6449414cf9..9aae4a407d2 100644 --- a/main/qemu/qemu.pre-install +++ b/main/qemu/qemu.pre-install @@ -1,3 +1,5 @@ #!/bin/sh -getent group kvm >/dev/null || addgroup -S -g 34 kvm +addgroup -S -g 34 kvm 2>/dev/null + +exit 0 diff --git a/main/quagga-nhrp/quagga-nhrp.pre-install b/main/quagga-nhrp/quagga-nhrp.pre-install index f8340fa26fe..f3b44716c34 100644 --- a/main/quagga-nhrp/quagga-nhrp.pre-install +++ b/main/quagga-nhrp/quagga-nhrp.pre-install @@ -2,5 +2,5 @@ addgroup -S quagga 2>/dev/null adduser -S -h /var/run/quagga -s /sbin/nologin -D -G quagga -g quagga quagga 2>/dev/null -exit 0 +exit 0 diff --git a/main/quagga/quagga.pre-install b/main/quagga/quagga.pre-install index f8340fa26fe..f3b44716c34 100644 --- a/main/quagga/quagga.pre-install +++ b/main/quagga/quagga.pre-install @@ -2,5 +2,5 @@ addgroup -S quagga 2>/dev/null adduser -S -h /var/run/quagga -s /sbin/nologin -D -G quagga -g quagga quagga 2>/dev/null -exit 0 +exit 0 diff --git a/main/radvd/radvd.pre-install b/main/radvd/radvd.pre-install index cc06c7d3e0e..44c76a2e5e1 100644 --- a/main/radvd/radvd.pre-install +++ b/main/radvd/radvd.pre-install @@ -1,5 +1,7 @@ #!/bin/sh + addgroup -S radvd 2>/dev/null adduser -S -s /sbin/nologin -D -H -G radvd \ -g "Router advertisement (radvd) user" radvd 2>/dev/null + exit 0 diff --git a/main/redis/redis.pre-install b/main/redis/redis.pre-install index 2a5993426f7..b6cbd05a13c 100644 --- a/main/redis/redis.pre-install +++ b/main/redis/redis.pre-install @@ -2,4 +2,5 @@ addgroup -S redis 2>/dev/null adduser -S -H -h /var/lib/redis -s /bin/false -D -G redis -g redis redis 2>/dev/null + exit 0 diff --git a/main/rpcbind/rpcbind.pre-install b/main/rpcbind/rpcbind.pre-install index 51fae454042..fe6a8268dfb 100644 --- a/main/rpcbind/rpcbind.pre-install +++ b/main/rpcbind/rpcbind.pre-install @@ -2,4 +2,5 @@ addgroup -S rpc 2>/dev/null adduser -S -h /var/lib/rpcbind -s /sbin/nologin -D -G rpc -g rpc rpc 2>/dev/null + exit 0 diff --git a/main/rt4/rt4.pre-install b/main/rt4/rt4.pre-install index b62454d6d0e..88327830ab7 100644 --- a/main/rt4/rt4.pre-install +++ b/main/rt4/rt4.pre-install @@ -2,4 +2,5 @@ addgroup -S rt4 2>/dev/null adduser -S -s /sbin/nologin -G rt4 -D -H -g "Request Tracker 4 user" rt4 2>/dev/null + exit 0 diff --git a/main/rtnppd/rtnppd.pre-install b/main/rtnppd/rtnppd.pre-install index faf0431225c..ec21795914d 100644 --- a/main/rtnppd/rtnppd.pre-install +++ b/main/rtnppd/rtnppd.pre-install @@ -2,4 +2,5 @@ addgroup -S rtnppd 2>/dev/null adduser -S -G rtnppd -H -h /var/run/rtnppd -s /sbin/nologin -g rtnppd rtnppd 2>/dev/null + exit 0 diff --git a/main/rtpproxy/rtpproxy.pre-install b/main/rtpproxy/rtpproxy.pre-install index cbf1e527c9c..93a10a866fa 100644 --- a/main/rtpproxy/rtpproxy.pre-install +++ b/main/rtpproxy/rtpproxy.pre-install @@ -2,4 +2,5 @@ addgroup -S rtpproxy 2>/dev/null adduser -S -G rtpproxy -H -h /usr/share/rtpproxy -s /sbin/nologin -g rtpproxy rtpproxy 2>/dev/null + exit 0 diff --git a/main/sems/sems.pre-install b/main/sems/sems.pre-install index b3b5c780247..83d4f740682 100644 --- a/main/sems/sems.pre-install +++ b/main/sems/sems.pre-install @@ -1,10 +1,6 @@ #!/bin/sh -if ! getent group sems >/dev/null; then - addgroup -S sems -fi -if ! getent passwd sems >/dev/null; then - adduser -S -H -h /var/empty -s /sbin/nologin -D -G sems -g sems sems 2>/dev/null -fi +addgroup -S sems 2>/dev/null +adduser -S -H -h /var/empty -s /sbin/nologin -D -G sems -g sems sems 2>/dev/null exit 0 diff --git a/main/sircbot/sircbot.pre-install b/main/sircbot/sircbot.pre-install index 8bfedcc9c35..c9db4723fe4 100644 --- a/main/sircbot/sircbot.pre-install +++ b/main/sircbot/sircbot.pre-install @@ -2,4 +2,5 @@ addgroup -S sircbot 2>/dev/null adduser -S -h /var/run/sircbot -G sircbot -D -g sircbot sircbot 2>/dev/null + exit 0 diff --git a/main/smokeping/smokeping.pre-install b/main/smokeping/smokeping.pre-install index 3158cc40ad3..f13ff10901f 100644 --- a/main/smokeping/smokeping.pre-install +++ b/main/smokeping/smokeping.pre-install @@ -2,4 +2,5 @@ addgroup -S smokeping 2>/dev/null adduser -S -h /var/lib/smokeping -D -G smokeping -g smokeping smokeping 2>/dev/null + exit 0 diff --git a/main/snmptt/snmptt.pre-install b/main/snmptt/snmptt.pre-install index efc8a6e05f6..e0c65c80206 100644 --- a/main/snmptt/snmptt.pre-install +++ b/main/snmptt/snmptt.pre-install @@ -1,3 +1,5 @@ #!/bin/sh -adduser -S -h /var/spool/snmptt -s /sbin/nologin -D -g snmptt snmptt &>/dev/null + +adduser -S -h /var/spool/snmptt -s /sbin/nologin -D -g snmptt snmptt 2>/dev/null + exit 0 diff --git a/main/snort/snort.pre-install b/main/snort/snort.pre-install index 47608ed97b7..bd0791bab21 100644 --- a/main/snort/snort.pre-install +++ b/main/snort/snort.pre-install @@ -1,4 +1,5 @@ #!/bin/sh adduser -S -h /var/log/snort -s /sbin/nologin -D -g snort snort 2>/dev/null + exit 0 diff --git a/main/squark/squark.post-install b/main/squark/squark.post-install index 3c406946925..f4f87982fb9 100755 --- a/main/squark/squark.post-install +++ b/main/squark/squark.post-install @@ -1,2 +1,5 @@ #!/bin/sh -addgroup -S squark &>/dev/null || exit 0 + +addgroup -S squark 2>/dev/null + +exit 0 diff --git a/main/squid/squid.pre-install b/main/squid/squid.pre-install index 3ac1f9fa161..11ff2bc3d95 100644 --- a/main/squid/squid.pre-install +++ b/main/squid/squid.pre-install @@ -1,6 +1,7 @@ #!/bin/sh -adduser -S -D -g squid squid -H /var/cache/squid 2>/dev/null +adduser -S -D -g squid squid -H /var/cache/squid 2>/dev/null addgroup -S winbind 2>/dev/null -addgroup squid winbind +addgroup squid winbind 2>/dev/null + exit 0 diff --git a/main/squid/squid.pre-upgrade b/main/squid/squid.pre-upgrade index 3ac1f9fa161..11ff2bc3d95 100644 --- a/main/squid/squid.pre-upgrade +++ b/main/squid/squid.pre-upgrade @@ -1,6 +1,7 @@ #!/bin/sh -adduser -S -D -g squid squid -H /var/cache/squid 2>/dev/null +adduser -S -D -g squid squid -H /var/cache/squid 2>/dev/null addgroup -S winbind 2>/dev/null -addgroup squid winbind +addgroup squid winbind 2>/dev/null + exit 0 diff --git a/main/strongswan/strongswan.pre-install b/main/strongswan/strongswan.pre-install index 12371d1196d..83b93284a15 100644 --- a/main/strongswan/strongswan.pre-install +++ b/main/strongswan/strongswan.pre-install @@ -1,10 +1,6 @@ #!/bin/sh -if ! getent group ipsec >/dev/null; then - addgroup -S ipsec -fi -if ! getent passwd ipsec >/dev/null; then - adduser -S -H -h /var/empty -s /sbin/nologin -D -G ipsec -g ipsec ipsec 2>/dev/null -fi +addgroup -S ipsec 2>/dev/null +adduser -S -H -h /var/empty -s /sbin/nologin -D -G ipsec -g ipsec ipsec 2>/dev/null exit 0 diff --git a/main/subversion/subversion.pre-install b/main/subversion/subversion.pre-install index 31090069b37..955baeefbd6 100644 --- a/main/subversion/subversion.pre-install +++ b/main/subversion/subversion.pre-install @@ -2,5 +2,5 @@ addgroup -S svnusers 2>/dev/null adduser -S -g svn svn -D -h /var/svn -G svnusers 2>/dev/null -exit 0 +exit 0 diff --git a/main/trac/trac.pre-install b/main/trac/trac.pre-install index 0fa8f02aa06..05e9f2a4480 100644 --- a/main/trac/trac.pre-install +++ b/main/trac/trac.pre-install @@ -2,4 +2,5 @@ addgroup -S tracd 2>/dev/null adduser -S -s /sbin/nologin -G tracd -D -H -g tracd tracd 2>/dev/null + exit 0 diff --git a/main/umurmur/umurmur.post-install b/main/umurmur/umurmur.post-install index d9a350a78a6..771aed1c8ec 100755 --- a/main/umurmur/umurmur.post-install +++ b/main/umurmur/umurmur.post-install @@ -1,4 +1,6 @@ #!/bin/sh -addgroup -S umurmur &>/dev/null -adduser -S -s /bin/false -G umurmur -h /var/run/umurmurd -D -g umurmur umurmur &>/dev/null + +addgroup -S umurmur 2>/dev/null +adduser -S -s /bin/false -G umurmur -h /var/run/umurmurd -D -g umurmur umurmur 2>/dev/null + exit 0 diff --git a/main/unbound/unbound.pre-install b/main/unbound/unbound.pre-install index 4cd64d59c68..63c00e9cdc6 100644 --- a/main/unbound/unbound.pre-install +++ b/main/unbound/unbound.pre-install @@ -3,4 +3,5 @@ addgroup -S unbound 2>/dev/null adduser -S -s /sbin/nologin -D -H -h /etc/unbound -G unbound \ -g "Unbound user" unbound 2>/dev/null + exit 0 diff --git a/main/uvncrepeater/uvncrepeater.pre-install b/main/uvncrepeater/uvncrepeater.pre-install index 0c856f813d2..052cd7ff22a 100644 --- a/main/uvncrepeater/uvncrepeater.pre-install +++ b/main/uvncrepeater/uvncrepeater.pre-install @@ -1,5 +1,5 @@ #!/bin/sh adduser -S -D -g uvncrep uvncrep 2>/dev/null -exit 0 +exit 0 diff --git a/main/varnish/varnish.pre-install b/main/varnish/varnish.pre-install index 74ccfd14218..4e34a099c72 100644 --- a/main/varnish/varnish.pre-install +++ b/main/varnish/varnish.pre-install @@ -2,4 +2,5 @@ addgroup -S varnish 2>/dev/null adduser -S -H -h /var/lib/varnish -s /sbin/nologin -D -G varnish -g varnish varnish 2>/dev/null + exit 0 diff --git a/main/vlc/vlc-daemon.pre-install b/main/vlc/vlc-daemon.pre-install index 33f99df8709..778c27a8c3a 100644 --- a/main/vlc/vlc-daemon.pre-install +++ b/main/vlc/vlc-daemon.pre-install @@ -1,6 +1,7 @@ #!/bin/sh groups="vlc audio video" + for group in $groups; do addgroup -S $group 2>/dev/null done @@ -10,4 +11,5 @@ adduser -S -h /home/vlc -s /bin/sh -G vlc -D -g vlc vlc 2>/dev/null for group in $groups; do addgroup vlc $group 2>/dev/null done + exit 0 diff --git a/main/vsftpd/vsftpd.pre-install b/main/vsftpd/vsftpd.pre-install index 0ed59d906a3..c6e45f1b71a 100755 --- a/main/vsftpd/vsftpd.pre-install +++ b/main/vsftpd/vsftpd.pre-install @@ -1,5 +1,7 @@ #!/bin/sh -addgroup -S ftp &>/dev/null -addgroup vsftp ftp &>/dev/null -adduser -S -h /var/lib/ftp -s /sbin/nologin -G ftp -g vsftp vsftp &>/dev/null + +addgroup -S ftp 2>/dev/null +addgroup vsftp ftp 2>/dev/null +adduser -S -h /var/lib/ftp -s /sbin/nologin -G ftp -g vsftp vsftp 2>/dev/null + exit 0 diff --git a/main/ympd/ympd.pre-install b/main/ympd/ympd.pre-install index 369f25d9459..a9a6edb409b 100644 --- a/main/ympd/ympd.pre-install +++ b/main/ympd/ympd.pre-install @@ -1,3 +1,5 @@ #!/bin/sh + adduser -S -H -D -s /sbin/nologin -G audio -g ympd ympd 2>/dev/null + exit 0 diff --git a/main/zabbix/zabbix-agent.pre-install b/main/zabbix/zabbix-agent.pre-install index a63d884e025..7cc5be2f896 100644 --- a/main/zabbix/zabbix-agent.pre-install +++ b/main/zabbix/zabbix-agent.pre-install @@ -2,5 +2,5 @@ addgroup -S zabbix 2>/dev/null adduser -S -H -h /dev/null -s /sbin/nologin -D -G zabbix -g zabbix zabbix 2>/dev/null -addgroup -g 30 zabbix 2>/dev/null + exit 0 diff --git a/main/zabbix/zabbix.pre-install b/main/zabbix/zabbix.pre-install index 30851f153c8..7cc5be2f896 100644 --- a/main/zabbix/zabbix.pre-install +++ b/main/zabbix/zabbix.pre-install @@ -2,4 +2,5 @@ addgroup -S zabbix 2>/dev/null adduser -S -H -h /dev/null -s /sbin/nologin -D -G zabbix -g zabbix zabbix 2>/dev/null + exit 0 diff --git a/main/znc/znc.pre-install b/main/znc/znc.pre-install index c0e1fa5f6b2..17c3bbc6944 100644 --- a/main/znc/znc.pre-install +++ b/main/znc/znc.pre-install @@ -1,3 +1,5 @@ #!/bin/sh + adduser -S -H -D -s /sbin/nologin -g znc znc 2>/dev/null + exit 0 diff --git a/testing/3proxy/3proxy.pre-install b/testing/3proxy/3proxy.pre-install index 46e6ea557dc..c3142289624 100644 --- a/testing/3proxy/3proxy.pre-install +++ b/testing/3proxy/3proxy.pre-install @@ -2,5 +2,5 @@ addgroup -S 3proxy 2>/dev/null adduser -S -G 3proxy -h /var/log/3proxy -s /sbin/nologin -D -g 3proxy 3proxy 2>/dev/null -exit 0 +exit 0 diff --git a/testing/at/at.pre-install b/testing/at/at.pre-install index a35aa484c9c..e3c28ec8980 100644 --- a/testing/at/at.pre-install +++ b/testing/at/at.pre-install @@ -1,16 +1,7 @@ #!/bin/sh -if ! getent group at >/dev/null; then - addgroup -S at 2>/dev/null -fi - -if ! getent passwd at >/dev/null; then - adduser -S -H -s /bin/false -D -g at at 2>/dev/null -fi - -if [ -z `echo " $(groups at) " | grep ' at '`] ; then - addgroup at at 2>/dev/null -fi +addgroup -S at 2>/dev/null +adduser -S -H -s /bin/false -D -g at at 2>/dev/null +addgroup at at 2>/dev/null exit 0 - diff --git a/testing/bitcoin/bitcoin.pre-install b/testing/bitcoin/bitcoin.pre-install index f020a8bd734..9cf75bbfb73 100644 --- a/testing/bitcoin/bitcoin.pre-install +++ b/testing/bitcoin/bitcoin.pre-install @@ -1,5 +1,6 @@ #!/bin/sh + addgroup -S bitcoin 2>/dev/null adduser -S -H -h /var/lib/bitcoin -g bitcoin -G bitcoin -D -s /sbin/nologin bitcoin 2>/dev/null -exit 0 +exit 0 diff --git a/testing/buildbot-slave/buildbot-slave.pre-install b/testing/buildbot-slave/buildbot-slave.pre-install index 40e29454cb8..ca33aace548 100644 --- a/testing/buildbot-slave/buildbot-slave.pre-install +++ b/testing/buildbot-slave/buildbot-slave.pre-install @@ -1,4 +1,5 @@ #!/bin/sh + adduser -S -H -h /home/buildbot -g buildbot -D -s /sbin/nologin buildbot 2>/dev/null -exit 0 +exit 0 diff --git a/testing/buildbot/buildbot.pre-install b/testing/buildbot/buildbot.pre-install index 40e29454cb8..ca33aace548 100644 --- a/testing/buildbot/buildbot.pre-install +++ b/testing/buildbot/buildbot.pre-install @@ -1,4 +1,5 @@ #!/bin/sh + adduser -S -H -h /home/buildbot -g buildbot -D -s /sbin/nologin buildbot 2>/dev/null -exit 0 +exit 0 diff --git a/testing/clapf/clapf.pre-install b/testing/clapf/clapf.pre-install index dff8c72c534..eec8afe4f2c 100644 --- a/testing/clapf/clapf.pre-install +++ b/testing/clapf/clapf.pre-install @@ -1,3 +1,5 @@ #!/bin/sh + adduser -S -H -s /bin/false -D -g clamav clamav 2>/dev/null + exit 0 diff --git a/testing/cluster-glue/cluster-glue.pre-install b/testing/cluster-glue/cluster-glue.pre-install index 2dff6b28b82..ce20da41023 100644 --- a/testing/cluster-glue/cluster-glue.pre-install +++ b/testing/cluster-glue/cluster-glue.pre-install @@ -8,4 +8,3 @@ adduser -S -g hacluster hacluster \ 2>/dev/null exit 0 - diff --git a/testing/consul/consul.pre-install b/testing/consul/consul.pre-install index 4d7a38506c1..1b9ea9daab9 100644 --- a/testing/consul/consul.pre-install +++ b/testing/consul/consul.pre-install @@ -1,7 +1,7 @@ #!/bin/sh # Create consul group and user -addgroup -S consul 2> /dev/null -adduser -S -h /var/consul -s /sbin/nologin -G consul -D -g consul consul 2> /dev/null -exit 0 +addgroup -S consul 2>/dev/null +adduser -S -h /var/consul -s /sbin/nologin -G consul -D -g consul consul 2>/dev/null +exit 0 diff --git a/testing/crtmpserver/crtmpserver.pre-install b/testing/crtmpserver/crtmpserver.pre-install index 643a6f8ff1a..e8dc1c722b6 100644 --- a/testing/crtmpserver/crtmpserver.pre-install +++ b/testing/crtmpserver/crtmpserver.pre-install @@ -1,3 +1,5 @@ #!/bin/sh + adduser -S -h /var/crtmpserver -s /bin/false -g rtmpd rtmpd 2>/dev/null + exit 0 diff --git a/testing/dante/dante-server.pre-install b/testing/dante/dante-server.pre-install index f657308493b..d11b1637c77 100644 --- a/testing/dante/dante-server.pre-install +++ b/testing/dante/dante-server.pre-install @@ -2,4 +2,5 @@ addgroup -S sockd 2>/dev/null adduser -S -H -h /dev/null -s /sbin/nologin -D -G sockd -g sockd sockd 2>/dev/null + exit 0 diff --git a/testing/darwin-streaming-server/darwin-streaming-server.post-install b/testing/darwin-streaming-server/darwin-streaming-server.post-install index 005bd35caba..3d4786e0ad5 100644 --- a/testing/darwin-streaming-server/darwin-streaming-server.post-install +++ b/testing/darwin-streaming-server/darwin-streaming-server.post-install @@ -1,4 +1,6 @@ #!/bin/sh -addgroup -S qtss &>/dev/null -adduser -S -s /bin/false -G qtss -h /var/darwinstreaming -D -g qtss qtss &>/dev/null + +addgroup -S qtss 2>/dev/null +adduser -S -s /bin/false -G qtss -h /var/darwinstreaming -D -g qtss qtss 2>/dev/null + exit 0 diff --git a/testing/dbmail/dbmail.pre-install b/testing/dbmail/dbmail.pre-install index 1f650df7c6a..bca9a6fe487 100644 --- a/testing/dbmail/dbmail.pre-install +++ b/testing/dbmail/dbmail.pre-install @@ -1,5 +1,5 @@ #!/bin/sh adduser -S -s /bin/false -D -H -h /var/lib/dbmail -g dbmail dbmail 2>/dev/null -exit 0 +exit 0 diff --git a/testing/dnscrypt-proxy/dnscrypt-proxy.pre-install b/testing/dnscrypt-proxy/dnscrypt-proxy.pre-install index 3bee7f2fff2..34a4de62f09 100644 --- a/testing/dnscrypt-proxy/dnscrypt-proxy.pre-install +++ b/testing/dnscrypt-proxy/dnscrypt-proxy.pre-install @@ -1,4 +1,6 @@ #!/bin/sh + addgroup -S dnscrypt 2>/dev/null adduser -S -H -h /var/empty -G dnscrypt -D -s /sbin/nologin -g dnscrypt dnscrypt 2>/dev/null + exit 0 diff --git a/testing/drizzle/drizzle.post-install b/testing/drizzle/drizzle.post-install index e7c7dcb49ad..64016b23f8c 100644 --- a/testing/drizzle/drizzle.post-install +++ b/testing/drizzle/drizzle.post-install @@ -1,2 +1,6 @@ -addgroup -S drizzle -adduser -SDHG drizzle -g drizzle drizzle +#!/bin/sh + +addgroup -S drizzle 2>/dev/null +adduser -SDHG drizzle -g drizzle drizzle 2>/dev/null + +exit 0 diff --git a/testing/dspam/dspam.pre-install b/testing/dspam/dspam.pre-install index d06ab90b5e2..e7a059cbb46 100644 --- a/testing/dspam/dspam.pre-install +++ b/testing/dspam/dspam.pre-install @@ -2,5 +2,5 @@ adduser -S -h /var/lib/dspam -s /bin/false -D -g dspam dspam 2>/dev/null chown dspam:dspam /var/lib/dspam -exit 0 +exit 0 diff --git a/testing/ejabberd/ejabberd.pre-install b/testing/ejabberd/ejabberd.pre-install index d4cab3c0a6a..efda04bed68 100644 --- a/testing/ejabberd/ejabberd.pre-install +++ b/testing/ejabberd/ejabberd.pre-install @@ -1,3 +1,5 @@ #!/bin/sh -adduser -S -H -h /var/lib/ejabberd -G ejabberd -D -g ejabberd ejabberd 2>/dev/null + +adduser -S -H -h /var/lib/ejabberd -G ejabberd -D -g ejabberd ejabberd 2>/dev/null + exit 0 diff --git a/testing/elasticsearch/elasticsearch.pre-install b/testing/elasticsearch/elasticsearch.pre-install index 63e023a16a8..54cd0d8f131 100644 --- a/testing/elasticsearch/elasticsearch.pre-install +++ b/testing/elasticsearch/elasticsearch.pre-install @@ -1,7 +1,7 @@ #!/bin/sh -addgroup -S elastico +addgroup -S elastico 2>/dev/null adduser -S -h /var/lib/elasticsearch -s /sbin/nologin -G elastico \ - -g "added by apk for elasticsearch" -DH elastico + -g "added by apk for elasticsearch" -DH elastico 2>/dev/null exit 0 diff --git a/testing/emby/emby.pre-install b/testing/emby/emby.pre-install index cfe59652f62..70555e47b8c 100644 --- a/testing/emby/emby.pre-install +++ b/testing/emby/emby.pre-install @@ -1,5 +1,7 @@ #!/bin/sh + addgroup -S emby 2>/dev/null adduser -S -D -h /var/lib/emby -s /sbin/nologin -g "Emby media server" \ -G emby emby 2>/dev/null + exit 0 diff --git a/testing/fcron/fcron.pre-install b/testing/fcron/fcron.pre-install index d513ffdef16..d4d66fdda26 100644 --- a/testing/fcron/fcron.pre-install +++ b/testing/fcron/fcron.pre-install @@ -1,4 +1,6 @@ #!/bin/sh -adduser -S -D -g fcron fcron -H -s /sbin/nologin 2>/dev/null -addgroup -S fcron + +adduser -S -D -g fcron fcron -H -s /sbin/nologin 2>/dev/null +addgroup -S fcron 2>/dev/null + exit 0 diff --git a/testing/gdnsd/gdnsd.pre-install b/testing/gdnsd/gdnsd.pre-install index 040e7f11df3..8e8af592f48 100644 --- a/testing/gdnsd/gdnsd.pre-install +++ b/testing/gdnsd/gdnsd.pre-install @@ -2,4 +2,5 @@ addgroup -S gdnsd 2>/dev/null adduser -S -H -h /dev/null -s /sbin/nologin -D -G gdnsd -g gdnsd gdnsd 2>/dev/null + exit 0 diff --git a/testing/gogs/gogs.pre-install b/testing/gogs/gogs.pre-install index 1596d656934..b1d3258c919 100644 --- a/testing/gogs/gogs.pre-install +++ b/testing/gogs/gogs.pre-install @@ -1,4 +1,6 @@ #!/bin/sh -adduser -S -h /var/lib/gogs -s /bin/ash -G www-data -D -g gogs gogs 2>/dev/null || true -passwd -u gogs || true +adduser -S -h /var/lib/gogs -s /bin/ash -G www-data -D -g gogs gogs 2>/dev/null +passwd -u gogs 2>/dev/null + +exit 0 diff --git a/testing/lightdm/lightdm.pre-install b/testing/lightdm/lightdm.pre-install index b8dbf564bbf..b7efe57975a 100644 --- a/testing/lightdm/lightdm.pre-install +++ b/testing/lightdm/lightdm.pre-install @@ -1,6 +1,8 @@ #!/bin/sh name=lightdm + addgroup -S $name 2>/dev/null adduser -S -H -h /var/run/lightdm -s /bin/false -D -G $name -g $name $name 2>/dev/null + exit 0 diff --git a/testing/lizardfs/lizardfs.pre-install b/testing/lizardfs/lizardfs.pre-install index f302e851e1b..e4b14a6197a 100644 --- a/testing/lizardfs/lizardfs.pre-install +++ b/testing/lizardfs/lizardfs.pre-install @@ -3,4 +3,5 @@ addgroup -S mfs 2>/dev/null adduser -S -H -h /var/lib/mfs -s /sbin/nologin -D -G mfs -g mfs mfs \ 2>/dev/null + exit 0 diff --git a/testing/lshell/lshell.pre-install b/testing/lshell/lshell.pre-install index 89e31b20102..8aedffa5339 100644 --- a/testing/lshell/lshell.pre-install +++ b/testing/lshell/lshell.pre-install @@ -1,4 +1,6 @@ #!/bin/sh + addgroup -S lshell 2>/dev/null adduser -S -H -h /var/empty -G lshell -D -s /sbin/nologin -g lshell lshell 2>/dev/null + exit 0 diff --git a/testing/lusca/lusca.pre-install b/testing/lusca/lusca.pre-install index 72953cfb25b..f70964f97e2 100644 --- a/testing/lusca/lusca.pre-install +++ b/testing/lusca/lusca.pre-install @@ -1,6 +1,7 @@ #!/bin/sh -adduser -S -D -g lusca lusca -h /var/cache/lusca -s /sbin/nologin 2>/dev/null +adduser -S -D -g lusca lusca -h /var/cache/lusca -s /sbin/nologin 2>/dev/null addgroup -S winbind 2>/dev/null -addgroup lusca winbind +addgroup lusca winbind 2>/dev/null + exit 0 diff --git a/testing/lusca/lusca.pre-upgrade b/testing/lusca/lusca.pre-upgrade index 72953cfb25b..f70964f97e2 100644 --- a/testing/lusca/lusca.pre-upgrade +++ b/testing/lusca/lusca.pre-upgrade @@ -1,6 +1,7 @@ #!/bin/sh -adduser -S -D -g lusca lusca -h /var/cache/lusca -s /sbin/nologin 2>/dev/null +adduser -S -D -g lusca lusca -h /var/cache/lusca -s /sbin/nologin 2>/dev/null addgroup -S winbind 2>/dev/null -addgroup lusca winbind +addgroup lusca winbind 2>/dev/null + exit 0 diff --git a/testing/milter-greylist/milter-greylist.pre-install b/testing/milter-greylist/milter-greylist.pre-install index f5e5359e86f..c104db9a74e 100644 --- a/testing/milter-greylist/milter-greylist.pre-install +++ b/testing/milter-greylist/milter-greylist.pre-install @@ -1,4 +1,6 @@ #!/bin/sh -addgroup -S smmsp &>/dev/null -adduser -h /var/lib/milter-greylist -s /sbin/nologin -S -G smmsp -g smmsp smmsp &>/dev/null + +addgroup -S smmsp 2>/dev/null +adduser -h /var/lib/milter-greylist -s /sbin/nologin -S -G smmsp -g smmsp smmsp 2>/dev/null + exit 0 diff --git a/testing/mlocate/mlocate.pre-install b/testing/mlocate/mlocate.pre-install index 18aa121d07b..8ae6bbd5508 100644 --- a/testing/mlocate/mlocate.pre-install +++ b/testing/mlocate/mlocate.pre-install @@ -1,3 +1,5 @@ #!/bin/sh + addgroup -S locate 2>/dev/null + exit 0 diff --git a/testing/mongodb/mongodb.pre-install b/testing/mongodb/mongodb.pre-install index 93c85ecf5c3..12b09a19696 100644 --- a/testing/mongodb/mongodb.pre-install +++ b/testing/mongodb/mongodb.pre-install @@ -1,5 +1,6 @@ #!/bin/sh -addgroup -S mongodb -adduser -S -D -G mongodb -h /var/lib/mongodb -s /sbin/nologin -g mongodb mongodb +addgroup -S mongodb 2>/dev/null +adduser -S -D -G mongodb -h /var/lib/mongodb -s /sbin/nologin -g mongodb mongodb 2>/dev/null + exit 0 diff --git a/testing/motion/motion.pre-install b/testing/motion/motion.pre-install index 7e66ab0e20b..91a4c34c016 100644 --- a/testing/motion/motion.pre-install +++ b/testing/motion/motion.pre-install @@ -1,6 +1,7 @@ #!/bin/sh + addgroup -S motion 2>/dev/null adduser -S -h /home/motion -s /bin/false -G motion -D -g motion motion 2>/dev/null -addgroup motion video -exit 0 +addgroup motion video 2>/dev/null +exit 0 diff --git a/testing/namecoin/namecoin.pre-install b/testing/namecoin/namecoin.pre-install index 33c72d14634..530d027236a 100644 --- a/testing/namecoin/namecoin.pre-install +++ b/testing/namecoin/namecoin.pre-install @@ -1,5 +1,6 @@ #!/bin/sh + addgroup -S namecoin 2>/dev/null adduser -S -h /var/lib/namecoin -g namecoin -G namecoin -D -s /sbin/nologin namecoin 2>/dev/null -exit 0 +exit 0 diff --git a/testing/ntopng/ntopng.pre-install b/testing/ntopng/ntopng.pre-install index 2386dc80698..9af92bb5d7d 100755 --- a/testing/ntopng/ntopng.pre-install +++ b/testing/ntopng/ntopng.pre-install @@ -1,4 +1,6 @@ #!/bin/sh + addgroup -S ntop 2>/dev/null adduser -S -h /var/lib/ntop -s /sbin/nologin -G ntop -H -D -g ntop ntop 2>/dev/null + exit 0 diff --git a/testing/nut/nut.pre-install b/testing/nut/nut.pre-install index cea4d7f5a81..707f98d53ab 100644 --- a/testing/nut/nut.pre-install +++ b/testing/nut/nut.pre-install @@ -1,4 +1,5 @@ #!/bin/sh adduser nut uucp 2>/dev/null + exit 0 diff --git a/testing/opennebula/opennebula-node-kvm.pre-install b/testing/opennebula/opennebula-node-kvm.pre-install index 5cf97eebc98..73173a745ef 100644 --- a/testing/opennebula/opennebula-node-kvm.pre-install +++ b/testing/opennebula/opennebula-node-kvm.pre-install @@ -8,5 +8,6 @@ adduser -S -D -s /bin/ash \ addgroup oneadmin libvirt 2>/dev/null addgroup oneadmin readproc 2>/dev/null addgroup oneadmin kvm 2>/dev/null -passwd -u oneadmin &>/dev/null +passwd -u oneadmin 2>/dev/null + exit 0 diff --git a/testing/opennebula/opennebula.pre-install b/testing/opennebula/opennebula.pre-install index e59e4144298..15527ebc01f 100644 --- a/testing/opennebula/opennebula.pre-install +++ b/testing/opennebula/opennebula.pre-install @@ -4,5 +4,6 @@ addgroup -S oneadmin 2>/dev/null adduser -S -D -s /bin/ash \ -H -h /var/lib/one -G oneadmin \ -g "OpenNebula user" oneadmin 2>/dev/null -passwd -u oneadmin &>/dev/null +passwd -u oneadmin 2>/dev/null + exit 0 diff --git a/testing/opensips/opensips.pre-install b/testing/opensips/opensips.pre-install index 9ef4702b978..8d0774990b6 100644 --- a/testing/opensips/opensips.pre-install +++ b/testing/opensips/opensips.pre-install @@ -1,5 +1,5 @@ #!/bin/sh -adduser -S -H -h /var/empty -s /bin/false -D -g opensips opensips 2>/dev/null +adduser -S -H -h /var/empty -s /bin/false -D -g opensips opensips 2>/dev/null exit 0 diff --git a/testing/openxcap/openxcap.pre-install b/testing/openxcap/openxcap.pre-install index 44ad1065e1c..7c90e2775c1 100755 --- a/testing/openxcap/openxcap.pre-install +++ b/testing/openxcap/openxcap.pre-install @@ -2,4 +2,5 @@ addgroup -S openxcap 2>/dev/null adduser -S -G openxcap -h /var/run/openxcap -s /bin/false -D -H -g openxcap openxcap 2>/dev/null + exit 0 diff --git a/testing/pdns/pdns.pre-install b/testing/pdns/pdns.pre-install index e0b3c5ac682..bf00793e47e 100644 --- a/testing/pdns/pdns.pre-install +++ b/testing/pdns/pdns.pre-install @@ -1,4 +1,5 @@ #!/bin/sh adduser -S -H -h /var/empty -D -s /bin/false -g pdns pdns 2>/dev/null + exit 0 diff --git a/testing/prosody/prosody.pre-install b/testing/prosody/prosody.pre-install index e2fab2127b2..c15127d59db 100644 --- a/testing/prosody/prosody.pre-install +++ b/testing/prosody/prosody.pre-install @@ -1,4 +1,5 @@ #!/bin/sh + addgroup -S prosody 2>/dev/null adduser -S -D \ -h /var/lib/prosody \ @@ -6,4 +7,5 @@ adduser -S -D \ -g "Prosody XMPP Server" \ -G prosody \ prosody 2>/dev/null + exit 0 diff --git a/testing/qpage/qpage.pre-install b/testing/qpage/qpage.pre-install index aaa8d3e59ac..5e7eed0842c 100644 --- a/testing/qpage/qpage.pre-install +++ b/testing/qpage/qpage.pre-install @@ -1,3 +1,5 @@ #!/bin/sh -adduser -S -h /var/lib/qpage -s /bin/false -G qpage -D -g qpage qpage 2>/dev/null || true +adduser -S -h /var/lib/qpage -s /bin/false -G qpage -D -g qpage qpage 2>/dev/null + +exit 0 diff --git a/testing/quicktun/quicktun.pre-install b/testing/quicktun/quicktun.pre-install index c17d220e205..b3c4c5088b9 100755 --- a/testing/quicktun/quicktun.pre-install +++ b/testing/quicktun/quicktun.pre-install @@ -1,5 +1,6 @@ #!/bin/sh -addgroup -S quicktun -adduser -S -h /var/run/quicktun -s /sbin/nologin -G quicktun -g "quicktun user" -H -D quicktun -exit 0 +addgroup -S quicktun 2>/dev/null +adduser -S -h /var/run/quicktun -s /sbin/nologin -G quicktun -g "quicktun user" -H -D quicktun 2>/dev/null + +exit 0 diff --git a/testing/radicale/radicale.pre-install b/testing/radicale/radicale.pre-install index f101c38153d..c15cf63cc47 100644 --- a/testing/radicale/radicale.pre-install +++ b/testing/radicale/radicale.pre-install @@ -1,7 +1,9 @@ #!/bin/sh name=radicale + addgroup -S $name 2>/dev/null adduser -S -H -h /var/lib/$name -s /sbin/nologin -D -G $name -g $name $name 2>/dev/null addgroup $name $name 2>/dev/null + exit 0 diff --git a/testing/rancid/rancid.pre-install b/testing/rancid/rancid.pre-install index 7204ea3fcb8..51e0dc84e74 100644 --- a/testing/rancid/rancid.pre-install +++ b/testing/rancid/rancid.pre-install @@ -2,4 +2,5 @@ addgroup -S netadm 2>/dev/null adduser -S -h /var/rancid -s /bin/sh -G netadm -D -g rancid rancid 2>/dev/null + exit 0 diff --git a/testing/rrdbot/rrdbot.pre-install b/testing/rrdbot/rrdbot.pre-install index 291f9182a5c..7004829ad7e 100644 --- a/testing/rrdbot/rrdbot.pre-install +++ b/testing/rrdbot/rrdbot.pre-install @@ -2,6 +2,6 @@ # this user should be included in alpine-baselayout-1.2. # included here for backward compability. -adduser -S -H -s /bin/false -D -g rrdbotd rrdbotd 2>/dev/null +adduser -S -H -s /bin/false -D -g rrdbotd rrdbotd 2>/dev/null exit 0 diff --git a/testing/rutorrent/rutorrent.pre-install b/testing/rutorrent/rutorrent.pre-install index 0d814556e4f..2c539f62fd2 100644 --- a/testing/rutorrent/rutorrent.pre-install +++ b/testing/rutorrent/rutorrent.pre-install @@ -1,4 +1,5 @@ #!/bin/sh + addgroup -S rutorrent 2>/dev/null -exit 0 +exit 0 diff --git a/testing/sipwise-sems/sipwise-sems.pre-install b/testing/sipwise-sems/sipwise-sems.pre-install index b3b5c780247..83d4f740682 100644 --- a/testing/sipwise-sems/sipwise-sems.pre-install +++ b/testing/sipwise-sems/sipwise-sems.pre-install @@ -1,10 +1,6 @@ #!/bin/sh -if ! getent group sems >/dev/null; then - addgroup -S sems -fi -if ! getent passwd sems >/dev/null; then - adduser -S -H -h /var/empty -s /sbin/nologin -D -G sems -g sems sems 2>/dev/null -fi +addgroup -S sems 2>/dev/null +adduser -S -H -h /var/empty -s /sbin/nologin -D -G sems -g sems sems 2>/dev/null exit 0 diff --git a/testing/socklog/socklog.post-install b/testing/socklog/socklog.post-install index 3f1b8a31dd7..a663d3dc325 100644 --- a/testing/socklog/socklog.post-install +++ b/testing/socklog/socklog.post-install @@ -19,3 +19,4 @@ exec chpst -Unobody socklog unix /dev/log EOF fi +exit 0 diff --git a/testing/stunnel/stunnel.pre-install b/testing/stunnel/stunnel.pre-install index cfb58054b23..22e6f415942 100644 --- a/testing/stunnel/stunnel.pre-install +++ b/testing/stunnel/stunnel.pre-install @@ -2,4 +2,5 @@ addgroup -S stunnel 2>/dev/null adduser -S -H -h /dev/null -s /sbin/nologin -D -G stunnel -g stunnel stunnel 2>/dev/null + exit 0 diff --git a/testing/thttpd/thttpd.pre-install b/testing/thttpd/thttpd.pre-install index c2ccfb705cf..12e860797ee 100644 --- a/testing/thttpd/thttpd.pre-install +++ b/testing/thttpd/thttpd.pre-install @@ -4,3 +4,5 @@ addgroup -S -g 82 www-data 2>/dev/null adduser -S -H -h /var/www/localhost/htdocs -s /sbin/nologin \ -D -g thttpd thttpd 2>/dev/null addgroup thttpd www-data 2>/dev/null + +exit 0 diff --git a/testing/tor/tor.pre-install b/testing/tor/tor.pre-install index 23536357917..5796d114f9c 100644 --- a/testing/tor/tor.pre-install +++ b/testing/tor/tor.pre-install @@ -1,4 +1,5 @@ #!/bin/sh + adduser -S -h /var/run/tor -s /sbin/nologin -D -g tor tor 2>/dev/null -exit 0 +exit 0 diff --git a/testing/tvheadend-git/tvheadend-git.pre-install b/testing/tvheadend-git/tvheadend-git.pre-install index 84ca2f8148d..3999c33bb89 100644 --- a/testing/tvheadend-git/tvheadend-git.pre-install +++ b/testing/tvheadend-git/tvheadend-git.pre-install @@ -1,4 +1,6 @@ #!/bin/sh + adduser -S -s /sbin/nologin -H -h /usr/share/tvheadend -g tvheadend tvheadend 2>/dev/null adduser tvheadend video + exit 0 diff --git a/testing/udevil/udevil.pre-install b/testing/udevil/udevil.pre-install index bd4b7de4ec4..9d4b1c3767e 100644 --- a/testing/udevil/udevil.pre-install +++ b/testing/udevil/udevil.pre-install @@ -1,4 +1,5 @@ #!/bin/sh + addgroup -S plugdev 2>/dev/null -exit 0 +exit 0 diff --git a/testing/vault/vault.pre-install b/testing/vault/vault.pre-install index 60d449fd85a..3df21bb3d2e 100644 --- a/testing/vault/vault.pre-install +++ b/testing/vault/vault.pre-install @@ -2,4 +2,5 @@ addgroup -S vault 2>/dev/null adduser -S -H -h /dev/null -s /sbin/nologin -D -G vault -g vault vault 2>/dev/null + exit 0 diff --git a/testing/vnstat/vnstat.pre-install b/testing/vnstat/vnstat.pre-install index 9445d10853e..e253007d2b8 100644 --- a/testing/vnstat/vnstat.pre-install +++ b/testing/vnstat/vnstat.pre-install @@ -2,4 +2,5 @@ addgroup -S vnstat 2>/dev/null adduser -S -h /var/lib/ -H -s /bin/false -D -G vnstat -g vnstat vnstat 2>/dev/null + exit 0 diff --git a/testing/wt/wt.pre-install b/testing/wt/wt.pre-install index 849322d8b8f..07311bd8fda 100644 --- a/testing/wt/wt.pre-install +++ b/testing/wt/wt.pre-install @@ -1,5 +1,7 @@ #!/bin/sh + addgroup -S -g 82 www-data 2>/dev/null adduser -S -H -s /sbin/nologin -D -g wt wt 2>/dev/null addgroup wt www-data 2>/dev/null + exit 0 diff --git a/testing/x2goserver/x2goserver.pre-install b/testing/x2goserver/x2goserver.pre-install index 911390e092a..6a20a96a5c4 100755 --- a/testing/x2goserver/x2goserver.pre-install +++ b/testing/x2goserver/x2goserver.pre-install @@ -1,4 +1,6 @@ #!/bin/sh -addgroup -S x2gouser -adduser -S -D -G x2gouser -h /var/lib/x2go -s /bin/false -g x2gouser x2gouser +addgroup -S x2gouser 2>/dev/null +adduser -S -D -G x2gouser -h /var/lib/x2go -s /bin/false -g x2gouser x2gouser 2>/dev/null + +exit 0 diff --git a/testing/zabbix/zabbix-agent.pre-install b/testing/zabbix/zabbix-agent.pre-install index 3ec8ae7c4fc..2464f275cac 100644 --- a/testing/zabbix/zabbix-agent.pre-install +++ b/testing/zabbix/zabbix-agent.pre-install @@ -3,4 +3,5 @@ addgroup -S zabbix 2>/dev/null adduser -S -H -h /dev/null -s /sbin/nologin -D -G zabbix -g zabbix zabbix 2>/dev/null addgroup -S -g 30 zabbix 2>/dev/null + exit 0 diff --git a/testing/zabbix/zabbix.pre-install b/testing/zabbix/zabbix.pre-install index 30851f153c8..7cc5be2f896 100644 --- a/testing/zabbix/zabbix.pre-install +++ b/testing/zabbix/zabbix.pre-install @@ -2,4 +2,5 @@ addgroup -S zabbix 2>/dev/null adduser -S -H -h /dev/null -s /sbin/nologin -D -G zabbix -g zabbix zabbix 2>/dev/null + exit 0 diff --git a/unmaintained/apache-couchdb/apache-couchdb.post-install b/unmaintained/apache-couchdb/apache-couchdb.post-install index 4bf99a46bbd..ae1da50210a 100755 --- a/unmaintained/apache-couchdb/apache-couchdb.post-install +++ b/unmaintained/apache-couchdb/apache-couchdb.post-install @@ -1,4 +1,6 @@ #!/bin/sh -addgroup -S couchdb &>/dev/null -adduser -S -h /var/run/couchdb -s /bin/false -G couchdb -D -g couchdb couchdb &>/dev/null + +addgroup -S couchdb 2>/dev/null +adduser -S -h /var/run/couchdb -s /bin/false -G couchdb -D -g couchdb couchdb 2>/dev/null + exit 0 diff --git a/unmaintained/ejabberd-git/ejabberd-git.pre-install b/unmaintained/ejabberd-git/ejabberd-git.pre-install index d4cab3c0a6a..efda04bed68 100644 --- a/unmaintained/ejabberd-git/ejabberd-git.pre-install +++ b/unmaintained/ejabberd-git/ejabberd-git.pre-install @@ -1,3 +1,5 @@ #!/bin/sh -adduser -S -H -h /var/lib/ejabberd -G ejabberd -D -g ejabberd ejabberd 2>/dev/null + +adduser -S -H -h /var/lib/ejabberd -G ejabberd -D -g ejabberd ejabberd 2>/dev/null + exit 0 diff --git a/unmaintained/kde-workspace/kde-workspace.pre-install b/unmaintained/kde-workspace/kde-workspace.pre-install index ef2e67148ec..b55298b1ea4 100644 --- a/unmaintained/kde-workspace/kde-workspace.pre-install +++ b/unmaintained/kde-workspace/kde-workspace.pre-install @@ -1,6 +1,8 @@ #!/bin/sh name=kdm + addgroup -S $name 2>/dev/null adduser -S -H -h /var/run/kdm -s /bin/false -D -G $name -g $name $name 2>/dev/null + exit 0 diff --git a/unmaintained/shadowircd/shadowircd.pre-install b/unmaintained/shadowircd/shadowircd.pre-install index e05b5e5f0e6..58b2a85c807 100644 --- a/unmaintained/shadowircd/shadowircd.pre-install +++ b/unmaintained/shadowircd/shadowircd.pre-install @@ -1,3 +1,5 @@ #!/bin/sh + adduser -S -h /var/run/shadowircd -s /bin/false -D -g ircd ircd 2>/dev/null + exit 0 |