summaryrefslogtreecommitdiff
path: root/quickstart.sh
diff options
context:
space:
mode:
Diffstat (limited to 'quickstart.sh')
-rwxr-xr-xquickstart.sh12
1 files changed, 5 insertions, 7 deletions
diff --git a/quickstart.sh b/quickstart.sh
index d46a791..edf8c43 100755
--- a/quickstart.sh
+++ b/quickstart.sh
@@ -1,11 +1,6 @@
#!/bin/sh
-export COUCHDB_USER=test
-export COUCHDB_PASSWORD=test
-export COUCHDB_NAME=test
-export COUCHDB_HOSTNAME=couchdb
-export DOCKER_JWT_PUBKEY_PATH=/tmp/soc_collector/
-export DOCKER_JWT_HTPASSWD_PATH=/tmp/soc_collector_htpasswd/
+source env-vars.sh
# Create a directory to store the certificates in.
if [ ! -d ${DOCKER_JWT_PUBKEY_PATH} ]; then
@@ -27,7 +22,10 @@ fi
# Generate a default htpasswd file with a user "usr:pwd".
if [ ! -f ${DOCKER_JWT_HTPASSWD_PATH}/.htpasswd ]; then
- htpasswd -b -c ${DOCKER_JWT_HTPASSWD_PATH}/.htpasswd usr pwd
+ htpasswd -b -c ${DOCKER_JWT_HTPASSWD_PATH}/.htpasswd user1 pwd
+ htpasswd -b ${DOCKER_JWT_HTPASSWD_PATH}/.htpasswd user2 pwd
+ htpasswd -b ${DOCKER_JWT_HTPASSWD_PATH}/.htpasswd user3 pwd
+ htpasswd -b ${DOCKER_JWT_HTPASSWD_PATH}/.htpasswd user4 pwd
fi
# Launch the containers.