diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-04 17:31:02 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-04 17:31:02 +0000 |
commit | 3f0e321b489e2eb1de700d20b850d5a43aecf769 (patch) | |
tree | 2e1bf6a66273dce009ed7f1f08dfb5bb9424bc80 /debian/redis-sentinel.postinst | |
parent | Adding upstream version 5:7.0.15. (diff) | |
download | redis-3f0e321b489e2eb1de700d20b850d5a43aecf769.tar.xz redis-3f0e321b489e2eb1de700d20b850d5a43aecf769.zip |
Adding debian version 5:7.0.15-1~deb12u1.debian/5%7.0.15-1_deb12u1debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | debian/redis-sentinel.postinst | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/debian/redis-sentinel.postinst b/debian/redis-sentinel.postinst new file mode 100644 index 0000000..96a7bf7 --- /dev/null +++ b/debian/redis-sentinel.postinst @@ -0,0 +1,24 @@ +#!/bin/sh + +set -eu + +USER="redis" +GROUP="$USER" +CONFFILE="/etc/redis/sentinel.conf" + +if [ "$1" = "configure" ] +then + if ! dpkg-statoverride --list ${CONFFILE} >/dev/null 2>&1 + then + dpkg-statoverride --update --add ${USER} ${GROUP} 640 ${CONFFILE} + fi +fi + +#DEBHELPER# + +if [ "$1" = "configure" ] +then + find /etc/redis -maxdepth 1 -type d -name 'redis-sentinel.*.d' -empty -delete +fi + +exit 0 |