Skip to content

Commit

Permalink
rpm-install: use save_failure_logs trap
Browse files Browse the repository at this point in the history
  • Loading branch information
grooverdan committed Nov 27, 2024
1 parent 3a6db55 commit 9214b9f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/rpm-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ set -u

sh -c 'g=/usr/lib*/galera*/libgalera_smm.so; echo -e "[galera]\nwsrep_provider=$g"' |
sudo tee /etc/my.cnf.d/galera.cnf

# Any of the below steps could fail
trap save_failure_logs ERR
set -e
case "$systemdCapability" in
yes)
if ! sudo systemctl start mariadb; then
Expand Down

0 comments on commit 9214b9f

Please sign in to comment.