No longer use the XAUTHORITY; drop debug comments

This commit is contained in:
Paul van Tilburg 2016-05-20 23:20:48 +02:00
parent c996f773ba
commit 9ccf3d2b15
1 changed files with 2 additions and 3 deletions

View File

@ -18,7 +18,6 @@ fi
# Allow for connecting to X11 and the SSH agent
export SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
export SSH_AGENT_PID=$(pidof ssh-agent)
export XAUTHORITY=/run/user/1000/gdm/Xauthority
# Restic settings
export RESTIC_BACKUP_OPTIONS="--exclude-file=$HOME/.config/restic/exclude"
@ -35,7 +34,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!"
@ -43,7 +42,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!"