summaryrefslogtreecommitdiff
path: root/roles/pipeliner/templates/updatepipeline.j2
blob: 87918c446e137e6053f65daa38fa0d0ed7e02759 (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 -Xtheirs && \
/usr/local/go/bin/go install ./cmd/bookpipeline && \
sudo cp "$HOME/go/bin/bookpipeline" /usr/local/bin/ || exit 1

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