Drop setting D-Bus/display environment variables
Using dbus-user-session this is not necessary.
This commit is contained in:
parent
0da287d5e5
commit
c996f773ba
|
@ -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!"
|
||||
|
|
Loading…
Reference in New Issue