From e953effc582f4f07e6508be94c295499a5c48cf2 Mon Sep 17 00:00:00 2001 From: "flow.gunso" Date: Tue, 9 Apr 2019 16:53:34 +0200 Subject: [PATCH] Export required environment variables --- assets/docker-entrypoint.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/assets/docker-entrypoint.sh b/assets/docker-entrypoint.sh index f0c7e1f..b17d300 100644 --- a/assets/docker-entrypoint.sh +++ b/assets/docker-entrypoint.sh @@ -44,4 +44,10 @@ chown $UID.$GID -R /home/seafuser/infinite-seaf-cli-start.sh chown $UID.$GID -R /home/seafuser/entrypoint.sh # Run the Seafile client as the container user. -su - $UNAME -m -c "/bin/bash /home/seafuser/entrypoint.sh" +su - $UNAME -c ' \ + export SEAFILE_SERVER_URL=$SEAFILE_SERVER_URL \ + export SEAF_USERNAME=$SEAF_USERNAME \ + export SEAF_PASSWORD=$SEAF_PASSWORD \ + export SEAF_LIBRARY_UUID=$SEAF_LIBRARY_UUID \ + export UNAME=$UNAME \ + /bin/bash /home/seafuser/entrypoint.sh'