Skip to content

Commit 805477c

Browse files
authored
Merge pull request #3 from jarronshih/master
Support create multiple default container using env variables.
2 parents d91e77a + 55df7ca commit 805477c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Diff for: files/startmain.sh

+4-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,10 @@ echo "Starting supervisord..."
7171
# Create default container
7272
if [ ! -z "${SWIFT_DEFAULT_CONTAINER}" ]; then
7373
echo "Creating default container..."
74-
swift -A http://localhost:8080/auth/v1.0 -U test:tester -K testing post ${SWIFT_DEFAULT_CONTAINER}
74+
for container in ${SWIFT_DEFAULT_CONTAINER} ; do
75+
echo "Creating container...${container}"
76+
swift -A http://localhost:8080/auth/v1.0 -U admin:admin -K admin post ${container}
77+
done
7578
fi
7679

7780
# Create meta-url-key to allow temp download url generation

0 commit comments

Comments
 (0)