MDEV-20053: update systemd unit

Now that we have proper paths in `galera_recovery` changing the
directory is no longer required.
This commit is contained in:
Christian Hesse
2024-06-11 10:28:10 +02:00
committed by Daniel Black
parent 105473233d
commit 3d2e54ff8c

View File

@ -80,7 +80,7 @@ PermissionsStartOnly=true
# Do not panic if galera_recovery script is not available. (MDEV-10538)
ExecStartPre=/bin/sh -c "systemctl unset-environment _WSREP_START_POSITION"
ExecStartPre=/bin/sh -c "[ ! -e @bindir@/galera_recovery ] && VAR= || \
VAR=`cd @bindir@/..; @bindir@/galera_recovery`; [ $? -eq 0 ] \
VAR=`@bindir@/galera_recovery`; [ $? -eq 0 ] \
&& systemctl set-environment _WSREP_START_POSITION=$VAR || exit 1"
# Needed to create system tables etc.