aboutsummaryrefslogtreecommitdiff
path: root/local/hooks/repo-specific/deploy-laminar-config
diff options
context:
space:
mode:
Diffstat (limited to 'local/hooks/repo-specific/deploy-laminar-config')
-rwxr-xr-xlocal/hooks/repo-specific/deploy-laminar-config9
1 files changed, 9 insertions, 0 deletions
diff --git a/local/hooks/repo-specific/deploy-laminar-config b/local/hooks/repo-specific/deploy-laminar-config
new file mode 100755
index 0000000..cf00dc2
--- /dev/null
+++ b/local/hooks/repo-specific/deploy-laminar-config
@@ -0,0 +1,9 @@
+#!/bin/execlineb
+
+backtick -n tempdir { mktemp -d }
+importas -u GL_REPO GL_REPO
+importas -u tempdir tempdir
+
+if { git clone -q . "${tempdir}"/laminar }
+if { rsync -ru --del "${tempdir}"/laminar/jobs/ /var/lib/laminar/cfg/jobs/ }
+rm -rf "${tempdir}"