]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
debian: specify interpreters for ceph-mon and ceph-osd postinsts
authorMatthew Vernon <mvernon@wikimedia.org>
Mon, 11 Sep 2023 15:48:17 +0000 (16:48 +0100)
committerMatthew Vernon <mvernon@wikimedia.org>
Fri, 22 Sep 2023 16:32:03 +0000 (17:32 +0100)
commiteaaf80725c56f25541f24288724c3a9ea26bfa7e
tree10813754766a136e4fb7416aabae2b1e4b4baa99
parentc14ed9bf1b254421d6949b62697b07aab4ea3b48
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>
debian/ceph-mon.postinst
debian/ceph-osd.postinst