summaryrefslogtreecommitdiff
path: root/roles/pipeliner/templates/updatepipeline.j2
blob: 511bd2a7682480c388e500c4a5eb17dc6fa2f91c (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh
s="/home/{{ ansible_user }}/src"
t="/home/{{ ansible_user }}/trainings"

cd "$s/bookpipeline" && \
git pull && \
go install ./cmd/bookpipeline && \
sudo cp "$HOME/go/bin/bookpipeline" /usr/local/bin/ || exit 1

cd "$t" && git pull && \
sudo cp "$t"/* /usr/local/share/tesseract-ocr/tessdata/