From 0037a68143a9f9bf2b38720dfd3b49ad3b14362e Mon Sep 17 00:00:00 2001 From: Paul van Tilburg Date: Wed, 26 Jul 2017 11:45:59 +0200 Subject: [PATCH] Don't hardcode the UID --- restic-cron | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/restic-cron b/restic-cron index e8e92bd..9d96059 100755 --- a/restic-cron +++ b/restic-cron @@ -18,7 +18,7 @@ fi # Allow for connecting to X11 and the SSH agent export DISPLAY=:0 -export SSH_AUTH_SOCK=/run/user/1000/keyring/ssh +export SSH_AUTH_SOCK=/run/user/$UID/keyring/ssh export SSH_AGENT_PID=$(pidof ssh-agent) # Restic settings