MDEV-31242: Make sure every Debian post/pre script is using bash

Make sure that every post and pre script are using bash
and have set -e in next to shebang.

Command set -e makes sure that if script fails in
one command it will fail whole script.
This commit is contained in:
Tuukka Pasanen 2023-05-23 09:03:53 +03:00 committed by Andrew Hutchings
parent 34bbf37f4f
commit 01e9e3955a
6 changed files with 8 additions and 6 deletions

View file

@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
set -e

View file

@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
set -e

View file

@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
set -e

View file

@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
set -e

View file

@ -1,4 +1,4 @@
#!/bin/bash -e
#!/bin/bash
#
# summary of how this script can be called:
# * <new-preinst> install
@ -7,6 +7,8 @@
# * <old-preinst> abort-upgrade <new-version>
#
set -e
# shellcheck source=/dev/null
. /usr/share/debconf/confmodule

View file

@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
set -e
#DEBHELPER#