-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Only one env variable to configure on first usage - Auto-generate a default config - Improve doc
- Loading branch information
Maxime Dor
committed
Dec 16, 2017
1 parent
6571ff7
commit 7fff244
Showing
4 changed files
with
41 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,26 @@ | ||
#!/bin/sh | ||
|
||
if ! [ -z "$CONF_FILE_PATH" ] && ! [ -f "CONF_FILE_PATH" ]; then | ||
echo "Generating config file $CONF_FILE_PATH" | ||
touch "CONF_FILE_PATH" | ||
|
||
if ! [ -z "$MATRIX_DOMAIN" ]; then | ||
echo "Setting matrix domain to $MATRIX_DOMAIN" | ||
echo "matrix.domain: $MATRIX_DOMAIN" >> "$CONF_FILE_PATH" | ||
fi | ||
|
||
if ! [ -z "$SIGN_KEY_PATH" ]; then | ||
echo "Setting signing key path to $SIGN_KEY_PATH" | ||
echo "key.path: $SIGN_KEY_PATH" >> "$CONF_FILE_PATH" | ||
fi | ||
|
||
if ! [ -z "$SQLITE_DATABASE_PATH" ]; then | ||
echo "Setting SQLite DB path to $SQLITE_DATABASE_PATH" | ||
echo "storage.provider.sqlite.database: $SQLITE_DATABASE_PATH" >> "$CONF_FILE_PATH" | ||
fi | ||
|
||
echo "Starting mxisd..." | ||
echo | ||
fi | ||
|
||
exec java $JAVA_OPTS -Djava.security.egd=file:/dev/./urandom -Dspring.config.location=/etc/mxisd/ -Dspring.config.name=mxisd -jar /mxisd.jar |