configuration/services/vdirsyncer/run

17 lines
271 B
Plaintext
Raw Normal View History

#!/bin/sh
2020-10-16 10:25:48 +02:00
export USER="$(whoami)"
export HOME=/home/"$USER"
export DISPLAY=":0"
set -e
# check for internet connection
ip route ls | grep -q '.'
# check if the gpg-agent is running
pgrep gpg-agent > /dev/null
2022-07-12 11:22:09 +02:00
torsocks vdirsyncer -v CRITICAL sync 2>&1
2020-10-16 10:25:48 +02:00
exec sleep 10m