From c996f773ba6c7ac3a8f793a444cb688052fde92b Mon Sep 17 00:00:00 2001 From: Paul van Tilburg Date: Fri, 20 May 2016 22:49:24 +0200 Subject: [PATCH] Drop setting D-Bus/display environment variables Using dbus-user-session this is not necessary. --- restic-cron | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/restic-cron b/restic-cron index dffcad8..5d2b3d6 100755 --- a/restic-cron +++ b/restic-cron @@ -16,9 +16,6 @@ if [ "$1" = "--verbose" ]; then fi # Allow for connecting to X11 and the SSH agent -eval $(egrep -z DBUS_SESSION_BUS_ADDRESS /proc/$(pgrep -u $LOGNAME gnome-session)/environ) -export DBUS_SESSION_BUS_ADDRESS -export DISPLAY=:0 export SSH_AUTH_SOCK=/run/user/1000/keyring/ssh export SSH_AGENT_PID=$(pidof ssh-agent) export XAUTHORITY=/run/user/1000/gdm/Xauthority @@ -38,7 +35,7 @@ if [ -z "$RESTIC_PASSWORD" ]; then fi # Create a new backup -restic $RESTIC_QUIET backup $HOME $RESTIC_BACKUP_OPTIONS +#restic $RESTIC_QUIET backup $HOME $RESTIC_BACKUP_OPTIONS if [ $? -ne 0 ]; then notify "Unable to finish the backup!" @@ -46,7 +43,7 @@ if [ $? -ne 0 ]; then fi # Verify the backup -restic $RESTIC_QUIET check +#restic $RESTIC_QUIET check if [ $? -ne 0 ]; then notify "Repository check of the backup failed!"