wisski-cloud-distillery/distillery/resources/compose/triplestore/entrypoint.sh
Tom Wiesing 76ef5d8e68
Switch to using Docker
This commit refactors all code in this project to make use of docker.
This has not yet been documented properly.
2020-06-26 12:54:47 +02:00

13 lines
No EOL
367 B
Bash

#!/bin/bash
set -e
# Because we want to run graphdb as a limited user
# we need to make sure that the volumes are writable.
# Because of that, we 'chown'
chown graphdb:graphdb /opt/graphdb/data
chown graphdb:graphdb /opt/graphdb/work
chown graphdb:graphdb /opt/graphdb/logs
# switch to the graphdb user, and run graphdb
su graphdb -c "/opt/graphdb/bin/graphdb $@"