Skip to content

Commit 685293e

Browse files
committed
Inception - use password from the environment variable
1 parent da69397 commit 685293e

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

inception/start_inception.sh

+9-6
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,18 @@ echo $INCEPTION_PASSWORD;
88
echo "------- Defining inception properties ------"
99
cat << \EOF | tee /export/settings.properties
1010
##
11-
## Login of admin
11+
## Login settings
1212
##
13-
#security.default-admin-username=INCEPTION_USERNAME
14-
#security.default-admin-password=INCEPTION_PASSWORD
13+
auth.mode=database
14+
security.default-admin-username=INCEPTION_USERNAME
15+
security.default-admin-password=INCEPTION_PASSWORD
1516
security.default-admin-remote-access=true
1617
remote-api.enabled=true
18+
auth.preauth.newuser.roles=ROLE_PROJECT_CREATOR
1719
##
1820
## Hosted at /inception
1921
##
22+
server.port=8080
2023
server.servlet.context-path=/inception
2124
sharing.invites.enabled=true
2225
sharing.invites.invite-base-url=INCEPTION_HOST
@@ -45,9 +48,9 @@ websocket.enabled=true
4548
telemetry.auto-respond=REJECT
4649
warnings.embeddedDatabase=false
4750
EOF
48-
#sed -i 's/INCEPTION_USERNAME/'"$INCEPTION_USERNAME"'/g' /export/settings.properties
49-
#sed -i 's/INCEPTION_PASSWORD/{bcrypt}'"$INCEPTION_PASSWORD"'/g' /export/settings.properties
50-
sed -i 's/INCEPTION_HOST/'"$INCEPTION_HOST"'/g' /export/settings.properties
51+
sed -i 's|INCEPTION_USERNAME|'"$INCEPTION_USERNAME"'|g' /export/settings.properties
52+
sed -i 's|INCEPTION_PASSWORD|{bcrypt}'"$INCEPTION_PASSWORD"'|g' /export/settings.properties
53+
sed -i 's|INCEPTION_HOST|'"$INCEPTION_HOST"'|g' /export/settings.properties
5154
cat /export/settings.properties
5255

5356
echo "------- Launching Inception ------"

0 commit comments

Comments
 (0)