diff options
author | Kristofer Hallin <kristofer@sunet.se> | 2022-01-17 14:01:08 +0100 |
---|---|---|
committer | Kristofer Hallin <kristofer@sunet.se> | 2022-01-17 14:01:08 +0100 |
commit | bb5029d512a58021718061aca439383c8b11e575 (patch) | |
tree | 74354b6bf55a9159695eea695653ef03009e5ad4 /quickstart.sh | |
parent | 571997129ba5275cc5e148a8ac1c0f64d895a9ef (diff) | |
parent | 0b55f7ff7cdd3b78bd9992063208476c1c080a02 (diff) |
* Merge branch 'main' into feature.callhome
* New API endpoints
* Updated requirements
Diffstat (limited to 'quickstart.sh')
-rwxr-xr-x | quickstart.sh | 12 |
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. |