From a28160371c60e880bd7c8a7412117201cb1feda3 Mon Sep 17 00:00:00 2001 From: Erik Westrup Date: Wed, 9 Feb 2022 15:45:49 +0100 Subject: [PATCH] Fix log path --- ...github.erikw.restic-automatic-backup.plist | 21 +++++++++---------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/Library/LaunchAgents/com.github.erikw.restic-automatic-backup.plist b/Library/LaunchAgents/com.github.erikw.restic-automatic-backup.plist index 186bd63..f859942 100644 --- a/Library/LaunchAgents/com.github.erikw.restic-automatic-backup.plist +++ b/Library/LaunchAgents/com.github.erikw.restic-automatic-backup.plist @@ -6,22 +6,21 @@ Label com.github.erikw.restic-automatic-backup - EnvironmentVariables - - PATH - /usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin - ProgramArguments /bin/bash -c - source /usr/local/etc/restic/erikw.env.sh && /usr/local/bin/restic_backup.sh + source /usr/local/etc/restic/erikw.env.sh && /usr/local/bin/restic_backup.sh >>$HOME/$LOG_OUT 2>>$HOME/$LOG_ERR - - StandardOutPath - /Users/erikw/Library/Logs/restic/restic_stdout.log - StandardErrorPath - /Users/erikw/Library/Logs/restic/restic_stderr.log + EnvironmentVariables + + PATH + /usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin + LOG_OUT + /Library/Logs/restic/restic_stdout.log + LOG_ERR + /Library/Logs/restic/restic_stderr.log + RunAtLoad