commit 4a2bd1bb135334acdc68eb255a9c308bc2ff0817
parent 1e987f0fde21f7aad9575617e3ea60edf9d125f2
Author: Daniel Moch <daniel@danielmoch.com>
Date: Mon, 3 Dec 2018 06:48:31 -0500
Use cgit snapshot for dotfiles
Diffstat:
3 files changed, 1 insertion(+), 9 deletions(-)
diff --git a/.local/bin/my b/.local/bin/my
@@ -356,7 +356,7 @@ case $command in
[ ! "$status" = "" ] && git pull --no-commit > /dev/null 2>&1
elif [ -d "$HOME/.dotfiles_tgz" ]
then
- curl -s https://danielmoch.com/static/dotfiles.tar.gz > /tmp/dotfiles.tgz.$$
+ curl -s https://git.danielmoch.com/dotfiles.git/snapshot/dotfiles-master.tar.gz > /tmp/dotfiles.tgz.$$
oldsum=`$sha_exec "$HOME/.dotfiles_tgz/dotfiles.tar.gz" | cut -d ' ' -f $fieldnum`
newsum=`$sha_exec "/tmp/dotfiles.tgz.$$" | cut -d ' ' -f $fieldnum`
if [ ! "$oldsum" = "$newsum" ]
diff --git a/.local/bin/my-init b/.local/bin/my-init
@@ -241,7 +241,6 @@ EOF
done
fi
-[ -d "$HOME/.dotfiles" ] && cp "$HOME/.local/lib/dotfiles/pre-push" "$HOME/.dotfiles/.git/hooks/"
[ ! -d "$HOME/.local/var/log" ] && mkdir -p "$HOME/.local/var/log"
[ ! -d "$HOME/.local/var/forecastio" ] && mkdir -p "$HOME/.local/var/forecastio"
[ ! -d "$HOME/.local/lib/cron.d" ] && mkdir -p "$HOME/.local/lib/cron.d"
diff --git a/.local/lib/dotfiles/pre-push b/.local/lib/dotfiles/pre-push
@@ -1,7 +0,0 @@
-#!/bin/sh
-cd .dotfiles
-tar czvf dotfiles.tar.gz `git ls-r ..`
-scp dotfiles.tar.gz dotcom:~
-ssh dotcom sudo update_dotfiles
-rm dotfiles.tar.gz
-exit 0