dotfiles

Obligatory dotfiles repo
git clone git://git.danielmoch.com/dotfiles.git
Log | Files | Refs

commit f304b93b0fa9305c84ead891fe215852807ed2c7
parent b7d9d61a0d73e70826a4ec1fb7c85fdc34100d94
Author: Daniel Moch <daniel@danielmoch.com>
Date:   Sun, 11 Sep 2022 06:31:30 -0400

cloudsync: Don't sync over VPN

Diffstat:
Mlib/cron.avail/cloudsync.sh | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/lib/cron.avail/cloudsync.sh b/lib/cron.avail/cloudsync.sh @@ -5,6 +5,12 @@ echo "Beginning cloud sync at `date`" +if ifconfig wg0 >/dev/null 2>&1 +then + echo "VPN is active. Exiting to conserve bandwidth." + exit +fi + year=`/bin/date '+%Y'` month=`/bin/date '+%m'` lastrun_dir="$HOME/var/`basename $0`"