summaryrefslogtreecommitdiffstats
path: root/debian/radosgw.postinst
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 18:46:10 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 18:46:10 +0000
commit7050cdb205fd1b1b847c148092a8548f00a061c0 (patch)
tree05a497ffd12f14405445c3288085e228f4e8579f /debian/radosgw.postinst
parentAdding upstream version 16.2.11+ds. (diff)
downloadceph-7050cdb205fd1b1b847c148092a8548f00a061c0.tar.xz
ceph-7050cdb205fd1b1b847c148092a8548f00a061c0.zip
Adding debian version 16.2.11+ds-2.debian/16.2.11+ds-2debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/radosgw.postinst')
-rw-r--r--debian/radosgw.postinst17
1 files changed, 17 insertions, 0 deletions
diff --git a/debian/radosgw.postinst b/debian/radosgw.postinst
new file mode 100644
index 000000000..3f1551269
--- /dev/null
+++ b/debian/radosgw.postinst
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+set -e
+
+if [ "${1}" = "configure" ] ; then
+ [ -f "/etc/default/ceph" ] && . /etc/default/ceph
+ [ -z "$SERVER_USER" ] && SERVER_USER=ceph
+ [ -z "$SERVER_GROUP" ] && SERVER_GROUP=ceph
+ if ! dpkg-statoverride --list /var/lib/ceph/radosgw >/dev/null; then
+ chown $SERVER_USER:$SERVER_GROUP /var/lib/ceph/radosgw
+ fi
+fi
+#DEBHELPER#
+
+exit 0
+
+