summaryrefslogtreecommitdiffhomepage
path: root/cronjob.sh
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-10-29 22:39:48 +0100
committerThomas Voss <mail@thomasvoss.com> 2023-10-29 22:39:48 +0100
commit9cad508b5c98ca1029460807249cafb712f28f1e (patch)
tree2ad62d1ca57b7dc691550865cb7fb0b55c26da34 /cronjob.sh
parentc88b4c2d0842dfbb32fa744dde781601b9e4e7cf (diff)
Migrate the site to GSP and a Makefile
Diffstat (limited to 'cronjob.sh')
-rwxr-xr-xcronjob.sh17
1 files changed, 0 insertions, 17 deletions
diff --git a/cronjob.sh b/cronjob.sh
deleted file mode 100755
index f36be1c..0000000
--- a/cronjob.sh
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/bin/sh
-
-# This script gets run by a cronjob every minute. It pulls from the git server
-# and checks for changes. If any changes were made, we rebuild the site.
-
-PATH=$PATH:/usr/local/bin
-
-h1=`git rev-parse HEAD`
-git pull
-h2=`git rev-parse HEAD`
-
-[ $h1 = $h2 ] || {
- make
- ./build
- git diff --name-only HEAD^ HEAD | grep -q server.go \
- && systemctl restart euro-thomasvoss-com.service
-}