From eaaf80725c56f25541f24288724c3a9ea26bfa7e Mon Sep 17 00:00:00 2001 From: Matthew Vernon Date: Mon, 11 Sep 2023 16:48:17 +0100 Subject: [PATCH] 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 --- debian/ceph-mon.postinst | 1 + debian/ceph-osd.postinst | 1 + 2 files changed, 2 insertions(+) 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 # -- 2.39.5