user shell: Setup path

This commit is contained in:
Tom Wiesing 2020-08-06 09:32:10 +02:00
parent d03404ea4d
commit 0f9cbd06b0
No known key found for this signature in database
GPG key ID: DC1F29F2BC78AB15
2 changed files with 4 additions and 1 deletions

View file

@ -32,6 +32,8 @@ GRAPHDB_PASSWORD="$3"
echo "GRAPHDB_PASSWORD=$GRAPHDB_PASSWORD"
shift 3
GRAPHDB_HEADER="$(echo "$GRAPHDB_USER:$GRAPHDB_PASSWORD" | base64)"
DRUPAL_USER="$1"
echo "DRUPAL_USER=$DRUPAL_USER"
DRUPAL_PASS="$2"
@ -123,6 +125,7 @@ function printdetails() {
echo "Write URL: http://triplestore:7200/repositories/$GRAPHDB_REPO/statements"
echo "Username: $GRAPHDB_USER"
echo "Password: $GRAPHDB_PASSWORD"
echo "Authorization Header: $GRAPHDB_HEADER"
echo "Writable: yes"
echo "Default Graph URI: http://$INSTANCE_DOMAIN/#"
echo "Ontology Paths: (empty)"

View file

@ -2,4 +2,4 @@
# This script is used to start a user shell inside the docker container.
cd "/var/www/data/project"
sudo -u www-data /bin/bash "$@"
sudo -u www-data "PATH=/var/www/data/project/vendor/bin:$PATH" /bin/bash "$@"