mirror of
https://github.com/TheAnachronism/docspell.git
synced 2024-11-13 02:31:10 +00:00
c56f692ff5
- if `/var/run/docker.sock` is found in the docker-container, this feature is activated - if not, nothing changes - usage: mount bind `docker.sock` from host by using `-v` or `volumes:`
18 lines
512 B
Bash
Executable File
18 lines
512 B
Bash
Executable File
#!/bin/sh
|
|
|
|
echo "Starting unoconv listener"
|
|
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
|
|
docker pull jbarlow83/ocrmypdf
|
|
function ocrmypdf () {
|
|
docker run jbarlow83/ocrmypdf $@
|
|
}
|
|
echo "Using OCRmyPDF v$(ocrmypdf --version)" && echo
|
|
fi
|
|
|
|
/opt/docspell-joex/bin/docspell-joex "$@"
|