From ffc4b02130a610bf4938ede871de785934d256a2 Mon Sep 17 00:00:00 2001 From: Alexander Bocken Date: Fri, 2 Oct 2020 15:33:22 +0200 Subject: [PATCH] added owncloud sync helper function --- .local/bin/tools/polybox_sync | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 .local/bin/tools/polybox_sync diff --git a/.local/bin/tools/polybox_sync b/.local/bin/tools/polybox_sync new file mode 100755 index 0000000..67bf948 --- /dev/null +++ b/.local/bin/tools/polybox_sync @@ -0,0 +1,7 @@ +#!/bin/bash +# Required if run as a cronjob: +export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u)/bus +export PASSWORD_STORE_GPG_OPTS="--homedir=$HOME/.local/share/gnupg" +export PASSWORD_STORE_DIR="$HOME/.local/share/password-store" + +ping 1.1.1.1 -c 1 && owncloudcmd -s -u abocken -p "$(pass ETH/nETHz\ -\ abocken@ethz.ch)" $HOME/eth/polybox https://polybox.ethz.ch