diff options
| author | Dave Hibberd <hibby@debian.org> | 2025-05-21 21:33:52 +0100 |
|---|---|---|
| committer | Dave Hibberd <hibby@debian.org> | 2025-05-21 21:33:52 +0100 |
| commit | 0d3ee7fd56efa24ba652fbc17f98dd10458e8054 (patch) | |
| tree | 3ee81c17c041f6aeba3492c805c11ed0192839dc /debian/postinst | |
| parent | 96197688e7b79553d45e0b6a5e760c2d80604862 (diff) | |
New upstream version 6.0.24.71+repackupstream/6.0.24.71+repack
Diffstat (limited to 'debian/postinst')
| -rw-r--r-- | debian/postinst | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/debian/postinst b/debian/postinst deleted file mode 100644 index c3b5ad3..0000000 --- a/debian/postinst +++ /dev/null @@ -1,47 +0,0 @@ -#!/bin/sh - -set -e - -if [ "$1" = configure ]; then - -# if ! getent group linbpq >/dev/null; then -# addgroup --system --force-badname linbpq || true -# fi - - echo "Creating/updating linbpq user account..." - adduser --system --group --home /opt/oarc/bpq \ - --gecos "linbpq system user" --shell /bin/false \ - --quiet --disabled-password linbpq || { - # adduser failed. Why? - if getent passwd linbpq >/dev/null ; then - echo "Non-system user linbpq found. I will not overwrite a non-system" >&2 - echo "user. Remove the user and reinstall linbpq." >&2 - exit 1 - fi - # unknown adduser error, simply exit - exit 1 - } - if ! id -nGz linbpq | grep -qzxF 'dialout' ; then - adduser linbpq dialout - fi - if ! id -nGz linbpq | grep -qzxF 'plugdev' ; then - adduser linbpq plugdev - fi - chown :linbpq /opt/oarc/bpq - chmod 775 /opt/oarc/bpq - -# If we have setcap is installed, set the requirements -# which allows us to install our binaries without the setuid -# bit. - if command -v setcap > /dev/null; then - setcap "CAP_NET_ADMIN=ep CAP_NET_RAW=ep CAP_NET_BIND_SERVICE=ep" /usr/sbin/linbpq - else - echo "Setcap failed on /usr/sbin/linbpq, Features may be limited" >&2 - fi - else - echo "Setcap is not installed, Features may be limited" >&2 - - -fi - -#DEBHELPER# |
