Full path /bin/bash in systemd services

Fixes #96
This commit is contained in:
Erik Westrup
2022-06-07 09:25:25 +02:00
parent 49cc054eeb
commit 811a5c3c8c
3 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -11,4 +11,4 @@ Type=simple
Nice=10
# pipefail: so that redirecting stderr from the script to systemd-cat does not hide the failed command from OnFailure above.
# `systemd-cat`: allows showing the restic output to the systemd journal
ExecStart=bash -c 'set -o pipefail; source $INSTALL_PREFIX/etc/restic/%I.env.sh && $INSTALL_PREFIX/bin/restic_check.sh 2>&1 | systemd-cat'
ExecStart=/bin/bash -c 'set -o pipefail; source $INSTALL_PREFIX/etc/restic/%I.env.sh && $INSTALL_PREFIX/bin/restic_check.sh 2>&1 | systemd-cat'