summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Hibberd <hibby@debian.org>2025-03-11 00:28:11 +0000
committerDave Hibberd <hibby@debian.org>2025-03-11 00:28:11 +0000
commit329e2f441d01a055527ee0a2265f6c4d83f4f26c (patch)
treeb1dc7b6ec12ddc8bec5573ff7ef081a815ad5a8d
parent0b4a17004f7a81b583af04b8c386c9baeb45b9ba (diff)
Who knows at this point
-rw-r--r--debian/changelog6
-rw-r--r--debian/postinst8
2 files changed, 12 insertions, 2 deletions
diff --git a/debian/changelog b/debian/changelog
index 2e0ab39..359172a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+linbpq (6.0.24.66+repack-1~hibbian+2) UNRELEASED; urgency=medium
+
+ * Update postinst script to be a little quieter
+
+ -- Dave Hibberd <hibby@debian.org> Tue, 11 Mar 2025 00:19:14 +0000
+
linbpq (6.0.24.66+repack-1~hibbian+1) bookworm-hibbian-unstable; urgency=medium
* New upstream version 6.0.24.66+repack
diff --git a/debian/postinst b/debian/postinst
index d12db0e..c3b5ad3 100644
--- a/debian/postinst
+++ b/debian/postinst
@@ -21,8 +21,12 @@ if [ "$1" = configure ]; then
# unknown adduser error, simply exit
exit 1
}
- adduser linbpq dialout
- adduser linbpq plugdev
+ 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