From 05b5ce6a592873655964a7cb819deb88602425a6 Mon Sep 17 00:00:00 2001 From: Michal Schorm Date: Wed, 14 Jul 2021 16:42:05 +0200 Subject: [PATCH] PATCH 2: Fix the hardcoded paths --- galera.spec | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/galera.spec b/galera.spec index fbc9548..5e04486 100644 --- a/galera.spec +++ b/galera.spec @@ -71,6 +71,13 @@ cmake -B %_vpath_builddir -LAH mv %{buildroot}/usr/lib/systemd/system/garb.service %{buildroot}/usr/lib/systemd/system/garbd.service sed -i 's/Alias=garbd.service/Alias=garb.service/g' %{buildroot}/usr/lib/systemd/system/garbd.service +# PATCH 2: +# Fix the hardcoded paths +# In the Systemd service file: +sed -i 's;/usr/bin/garb-systemd;/usr/sbin/garb-systemd;g' %{buildroot}/usr/lib/systemd/system/garbd.service +# In the wrapper script: +sed -i 's;/usr/bin/garbd;/usr/sbin/garbd;g' %{buildroot}/usr/sbin/garb-systemd + %post /sbin/ldconfig