mirror of
https://github.com/MariaDB/server.git
synced 2025-01-28 17:54:16 +01:00
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:
parent
34bbf37f4f
commit
01e9e3955a
6 changed files with 8 additions and 6 deletions
2
debian/mariadb-common.postinst
vendored
2
debian/mariadb-common.postinst
vendored
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
|
2
debian/mariadb-common.postrm
vendored
2
debian/mariadb-common.postrm
vendored
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
|
2
debian/mariadb-plugin-mroonga.postinst
vendored
2
debian/mariadb-plugin-mroonga.postinst
vendored
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
|
2
debian/mariadb-plugin-mroonga.prerm
vendored
2
debian/mariadb-plugin-mroonga.prerm
vendored
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
|
4
debian/mariadb-server.preinst
vendored
4
debian/mariadb-server.preinst
vendored
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash -e
|
#!/bin/bash
|
||||||
#
|
#
|
||||||
# summary of how this script can be called:
|
# summary of how this script can be called:
|
||||||
# * <new-preinst> install
|
# * <new-preinst> install
|
||||||
|
@ -7,6 +7,8 @@
|
||||||
# * <old-preinst> abort-upgrade <new-version>
|
# * <old-preinst> abort-upgrade <new-version>
|
||||||
#
|
#
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
# shellcheck source=/dev/null
|
# shellcheck source=/dev/null
|
||||||
. /usr/share/debconf/confmodule
|
. /usr/share/debconf/confmodule
|
||||||
|
|
||||||
|
|
2
debian/mariadb-server.prerm
vendored
2
debian/mariadb-server.prerm
vendored
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
#DEBHELPER#
|
#DEBHELPER#
|
||||||
|
|
Loading…
Add table
Reference in a new issue