Skip to content
Snippets Groups Projects
Verified Commit f9340c7e authored by David Mehren's avatar David Mehren
Browse files

Use /usr/bin/env to find path to borgmatic executable

This makes this compatible with systems that don't place pip-installed executables in /usr/local/bin, like Arch.
parent 80e4d78e
No related branches found
No related tags found
No related merge requests found
Pipeline #145171 passed
...@@ -58,5 +58,5 @@ LogRateLimitIntervalSec=0 ...@@ -58,5 +58,5 @@ LogRateLimitIntervalSec=0
ExecStartPre=/bin/sh -c 'while systemctl is-active borgbackup.service | grep activating > /dev/null; do \ ExecStartPre=/bin/sh -c 'while systemctl is-active borgbackup.service | grep activating > /dev/null; do \
sleep 1; \ sleep 1; \
done' done'
ExecStart=systemd-inhibit --who="borgmatic" --why="Prevent interrupting scheduled backup check" /usr/local/bin/borgmatic prune compact check --verbosity -1 --syslog-verbosity 1 ExecStart=systemd-inhibit --who="borgmatic" --why="Prevent interrupting scheduled backup check" /usr/bin/env borgmatic prune compact check --verbosity -1 --syslog-verbosity 1
...@@ -59,4 +59,4 @@ LogRateLimitIntervalSec=0 ...@@ -59,4 +59,4 @@ LogRateLimitIntervalSec=0
# Delay start to prevent backups running during boot. Note that systemd-inhibit requires dbus and # Delay start to prevent backups running during boot. Note that systemd-inhibit requires dbus and
# dbus-user-session to be installed. # dbus-user-session to be installed.
ExecStart=systemd-inhibit --who="borgmatic" --why="Prevent interrupting scheduled backup" /usr/local/bin/borgmatic create --verbosity -1 --syslog-verbosity 1 ExecStart=systemd-inhibit --who="borgmatic" --why="Prevent interrupting scheduled backup" /usr/bin/env borgmatic create --verbosity -1 --syslog-verbosity 1
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment