summaryrefslogtreecommitdiff
path: root/roles/pipeliner/templates
diff options
context:
space:
mode:
Diffstat (limited to 'roles/pipeliner/templates')
-rw-r--r--roles/pipeliner/templates/updatepipeline.j26
1 files changed, 5 insertions, 1 deletions
diff --git a/roles/pipeliner/templates/updatepipeline.j2 b/roles/pipeliner/templates/updatepipeline.j2
index 9a375ca..e7b6ed4 100644
--- a/roles/pipeliner/templates/updatepipeline.j2
+++ b/roles/pipeliner/templates/updatepipeline.j2
@@ -1,5 +1,9 @@
#!/bin/sh
g="/home/{{ ansible_user }}/src/go"
+t="/home/{{ ansible_user }}/trainings"
GOPATH="$g" go get -u rescribe.xyz/bookpipeline/... && \
-sudo cp "$g/bin/bookpipeline" /usr/local/bin/
+sudo cp "$g/bin/bookpipeline" /usr/local/bin/ || exit 1
+
+cd "$t" && git pull && \
+cp "$t"/* /usr/local/share/tesseract-ocr/trainings/