dotfiles

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

commit 804eec87cd4b7e51ce97e7cb05fb8ca9d7f53819
parent b2605dfee75fbafec7977d9ea43950bbac291f9e
Author: Daniel Moch <daniel@danielmoch.com>
Date:   Sat,  7 Apr 2018 21:51:22 -0400

Move nextcloud to djmoch.org

Diffstat:
M.local/lib/cron/cloudsync.sh | 11++++++-----
M.ssh/config | 2+-
2 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/.local/lib/cron/cloudsync.sh b/.local/lib/cron/cloudsync.sh @@ -10,6 +10,7 @@ month=`date '+%m'` lastrun_dir="$HOME/.local/var/`basename $0`" lastrun_file="$lastrun_dir/lastrun" mobile_docs="$HOME/Documents/Mobile" +server_fqdn="nextcloud.djmoch.org" if [ -d "$lastrun_dir" ] then @@ -28,12 +29,12 @@ echo "$year $month" > $lastrun_file [ ! -d "$mobile_docs" ] && mkdir -p "$mobile_docs" -# Only do the following if nextcloud.danielmoch.com is reachable -if ping -c 1 nextcloud.danielmoch.com > /dev/null 2>&1 +# Only do the following if the server is reachable +if ping -c 1 $server_fqdn > /dev/null 2>&1 then - echo "nextcloud.danielmoch.com reachable. Proceeding." + echo "$server_fqdn reachable. Proceeding." else - echo "nextcloud.danielmoch.com NOT reachable. Exiting." + echo "$server_fqdn NOT reachable. Exiting." exit -1 fi @@ -87,7 +88,7 @@ then rsync -aq "$mobile_docs"/* /mnt/nextcloud/Documents # Finish by unmounting the WebDAV folder - echo "Unmounting nextcloud.danielmoch.com" + echo "Unmounting $server_fqdn" umount /mnt/nextcloud else echo "NextCloud WebDAV mount FAILED. Exiting." diff --git a/.ssh/config b/.ssh/config @@ -2,7 +2,7 @@ Host dotcom RemoteForward /run/user/1000/gnupg/S.gpg-agent /run/user/1000/gnupg/S.gpg-agent.extra Host dotcom-git - HostName gogs.danielmoch.com + HostName gogs.djmoch.org User gogs ForwardAgent no