]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
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)
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

index b33f34b6b5eddb4c59a995a7cdb472e39eccf0ff..688d8141d39a29a37e0303127c336cd58a8cef3f 100644 (file)
@@ -1,3 +1,4 @@
+#!/bin/sh
 # vim: set noet ts=8:
 # postinst script for ceph-mon
 #
index 5e44548fe826177d9c78c589f0611207d334d7e5..04e33b8601f9468a94dbfeefe21fcdbea802b966 100644 (file)
@@ -1,3 +1,4 @@
+#!/bin/sh
 # vim: set noet ts=8:
 # postinst script for ceph-osd
 #