mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-21 09:58:26 +00:00
Bugfixes
- Using a script in `/usr/local/bin ` now to overwrit the default *ocrmypdf* version and thus replaced the approach using a bash function - Also had to add volume mapping to docker call **ATTENTION** the path /tmp/docspell-convert:/tmp/docspell-convert must be mapped when starting Docspell's docker image!
This commit is contained in:
@ -5,13 +5,16 @@ unoconv -l &
|
||||
|
||||
# replace own ocrmypdf with official dockerfile, i.e. newer version
|
||||
if [ -S "/var/run/docker.sock" ]; then
|
||||
echo "Found 'docker.sock': Installing Docker and redirecting 'ocrmypdf' command to official dockerfile by jbarlow83"
|
||||
apk --no-cache add docker
|
||||
if [ ! -f "/usr/local/bin/ocrmypdf.sh" ]; then
|
||||
echo "Found 'docker.sock': Installing Docker and redirecting 'ocrmypdf' command to official dockerfile by jbarlow83"
|
||||
apk --no-cache add docker
|
||||
|
||||
mv /usr/local/bin/joex-ocrmypdf.sh /usr/local/bin/ocrmypdf
|
||||
chmod ug+x /usr/local/bin/ocrmypdf
|
||||
fi
|
||||
|
||||
docker pull -q jbarlow83/ocrmypdf:$OCRMYPDF_VERSION
|
||||
function ocrmypdf () {
|
||||
docker run jbarlow83/ocrmypdf:$OCRMYPDF_VERSION $@
|
||||
}
|
||||
echo "Using OCRmyPDF v$(ocrmypdf --version)" && echo
|
||||
echo "Using OCRmyPDF@Docker v$(ocrmypdf --version)" && echo
|
||||
fi
|
||||
|
||||
/opt/docspell-joex/bin/docspell-joex "$@"
|
||||
|
Reference in New Issue
Block a user