summaryrefslogtreecommitdiffstats
path: root/debian/radosgw.postinst
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 18:24:29 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 18:24:29 +0000
commitdf4528d6668ab18e40584fe540355bdfba0fb6dd (patch)
treef1bfdcb6485edff853369405dd5423c662c47345 /debian/radosgw.postinst
parentAdding upstream version 14.2.21. (diff)
downloadceph-df4528d6668ab18e40584fe540355bdfba0fb6dd.tar.xz
ceph-df4528d6668ab18e40584fe540355bdfba0fb6dd.zip
Adding debian version 14.2.21-1.debian/14.2.21-1debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-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 00000000..3f155126
--- /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
+
+