Skip to content

Commit 9214b9f

Browse files
committed
rpm-install: use save_failure_logs trap
1 parent 3a6db55 commit 9214b9f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scripts/rpm-install.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ set -u
5858

5959
sh -c 'g=/usr/lib*/galera*/libgalera_smm.so; echo -e "[galera]\nwsrep_provider=$g"' |
6060
sudo tee /etc/my.cnf.d/galera.cnf
61+
62+
# Any of the below steps could fail
63+
trap save_failure_logs ERR
64+
set -e
6165
case "$systemdCapability" in
6266
yes)
6367
if ! sudo systemctl start mariadb; then

0 commit comments

Comments
 (0)