From 09670e4bd000a5520988b7b0820e5a3cc4be0473 Mon Sep 17 00:00:00 2001 From: Felix Kaechele Date: Feb 04 2022 18:32:04 +0000 Subject: fix sed on systemd unit to only replace the path Signed-off-by: Felix Kaechele --- diff --git a/borgmatic.spec b/borgmatic.spec index accad51..d462344 100644 --- a/borgmatic.spec +++ b/borgmatic.spec @@ -1,6 +1,6 @@ Name: borgmatic Version: 1.5.22 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Simple Python wrapper script for borgbackup License: GPLv3 @@ -43,7 +43,7 @@ according to a retention policy, and validates backups for consistency. install -dm 0750 %{buildroot}%{_sysconfdir}/borgmatic install -dm 0750 %{buildroot}%{_sysconfdir}/borgmatic.d -sed -i 's#^ExecStart=.*#ExecStart=%{_bindir}/%{name}#' sample/systemd/%{name}.service +sed -i 's#/root/.local/bin/borgmatic#%{_bindir}/%{name}#' sample/systemd/%{name}.service install -Dpm 0644 sample/systemd/%{name}.service %{buildroot}%{_unitdir}/%{name}.service install -Dpm 0644 sample/systemd/%{name}.timer %{buildroot}%{_unitdir}/%{name}.timer @@ -76,6 +76,9 @@ install -Dpm 0644 sample/systemd/%{name}.timer %{buildroot}%{_unitdir}/%{name}.t %changelog +* Fri Feb 04 2022 Felix Kaechele - 1.5.22-2 +- fix sed on systemd unit to only replace the path + * Fri Feb 04 2022 Felix Kaechele - 1.5.22-1 - update to 1.5.22