Compare commits

...

2 Commits

2 changed files with 21 additions and 2 deletions

19
.config/vdirsyncer/config Normal file
View File

@ -0,0 +1,19 @@
[general]
status_path = "~/.config/vdirsyncer/status/"
[pair nextcloud_contacts]
a = "nextcloud_contacts_local"
b = "nextcloud_contacts_remote"
collections = ["from a", "from b"]
[storage nextcloud_contacts_local]
type = "filesystem"
path = "~/.local/share/vdirsyncer/"
fileext = ".vcf"
[storage nextcloud_contacts_remote]
type = "carddav"
url = "https://cloud.bocken.org/remote.php/dav/addressbooks/users/alexander/contacts/"
auth = "basic"
username = "alexander"
password.fetch = ["shell", "pass Misc/NC_vdirsyncer | head -n1"]

View File

@ -14,7 +14,7 @@ moodle_pid=$!
# sync nextcloud drive # sync nextcloud drive
echo "syncclouds.sh: nextcloudcmd" echo "syncclouds.sh: nextcloudcmd"
{ {
nextcloudcmd -s -u "alexander@bocken.org" --password "$(pass server/seenas/nextcloud_admin_pass | head -n1)" ~/dox/nextcloud https://cloud.bocken.org nextcloudcmd -u "alexander" --password "Misc/nextcloud_token" ~/dox/nextcloud https://cloud.bocken.org
} > /dev/null 2>&1 & } > /dev/null 2>&1 &
nextcloud_pid=$! nextcloud_pid=$!
@ -30,7 +30,7 @@ echo "syncclouds.sh: calcurse-caldav"
{ {
# remove lock file if calcurse-caldav is not running # remove lock file if calcurse-caldav is not running
pgrep -x calcurse-caldav || [ -f ~/.local/share/calcurse/caldav/lock ] && rm ~/.local/share/calcurse/caldav/lock pgrep -x calcurse-caldav || [ -f ~/.local/share/calcurse/caldav/lock ] && rm ~/.local/share/calcurse/caldav/lock
CALCURSE_CALDAV_PASSWORD=$(pass server/seenas/nextcloud_admin_pass) calcurse-caldav CALCURSE_CALDAV_PASSWORD=$(pass Misc/calcurse_token) calcurse-caldav
} > /dev/null 2>&1 & } > /dev/null 2>&1 &
calcurse_pid=$! calcurse_pid=$!