summaryrefslogtreecommitdiffstats
path: root/debian
diff options
context:
space:
mode:
authorMatthew Vernon <mvernon@wikimedia.org>2023-09-11 17:48:17 +0200
committerMatthew Vernon <mvernon@wikimedia.org>2023-09-22 18:32:03 +0200
commiteaaf80725c56f25541f24288724c3a9ea26bfa7e (patch)
tree10813754766a136e4fb7416aabae2b1e4b4baa99 /debian
parentdebian: Build-Depend on g++ 11 or greater (diff)
downloadceph-eaaf80725c56f25541f24288724c3a9ea26bfa7e.tar.xz
ceph-eaaf80725c56f25541f24288724c3a9ea26bfa7e.zip
debian: specify interpreters for ceph-mon and ceph-osd postinsts
These were previously missing. The requirement for interpreters is in Debian policy section 10.4: https://www.debian.org/doc/debian-policy/ch-files.html#s-scripts Debian's packaging already adds the #! to these two postinsts. In practice, a text executible without a #! line will likely be executed by the calling shell, so a lot of the time we'd get away with it unless the administrator is using an incompatible shell like tcsh. This behaviour of shells is documented in POSIX section 1(e)(i)(b) here: https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_09_01_01 Signed-off-by: Matthew Vernon <mvernon@wikimedia.org>
Diffstat (limited to 'debian')
-rw-r--r--debian/ceph-mon.postinst1
-rw-r--r--debian/ceph-osd.postinst1
2 files changed, 2 insertions, 0 deletions
diff --git a/debian/ceph-mon.postinst b/debian/ceph-mon.postinst
index b33f34b6b5e..688d8141d39 100644
--- a/debian/ceph-mon.postinst
+++ b/debian/ceph-mon.postinst
@@ -1,3 +1,4 @@
+#!/bin/sh
# vim: set noet ts=8:
# postinst script for ceph-mon
#
diff --git a/debian/ceph-osd.postinst b/debian/ceph-osd.postinst
index 5e44548fe82..04e33b8601f 100644
--- a/debian/ceph-osd.postinst
+++ b/debian/ceph-osd.postinst
@@ -1,3 +1,4 @@
+#!/bin/sh
# vim: set noet ts=8:
# postinst script for ceph-osd
#