From 8d07b378b9cd6bb9e861c7ec1698dc8b60f77efd Mon Sep 17 00:00:00 2001 From: Erik Hilton Date: Wed, 3 Feb 2021 09:40:43 +0100 Subject: [PATCH] cleanup config --- steve/rootfs/etc/cont-init.d/10-create-config.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/steve/rootfs/etc/cont-init.d/10-create-config.sh b/steve/rootfs/etc/cont-init.d/10-create-config.sh index 04fae07..8e6d958 100755 --- a/steve/rootfs/etc/cont-init.d/10-create-config.sh +++ b/steve/rootfs/etc/cont-init.d/10-create-config.sh @@ -17,14 +17,13 @@ username=$(bashio::services "mysql" "username") adminuser=$(bashio::config 'admin_user') adminpassword=$(bashio::config 'admin_password') timezone=$(bashio::config 'timezone') -httpport=$(bashio::config 'httpport') # Modify config files sed -i 's/^db.ip .*$/db.ip = '"$host"'/' /usr/src/steve/src/main/resources/config/prod/main.properties sed -i 's/^db.user .*$/db.user = '"$username"'/' /usr/src/steve/src/main/resources/config/prod/main.properties sed -i 's/^db.password .*$/db.password = '"$password"'/' /usr/src/steve/src/main/resources/config/prod/main.properties -sed -i 's/^server.host .*$/server.host = 0.0.0.0/' /usr/src/steve/src/main/resources/config/prod/main.properties -sed -i 's/^http.port .*$/http.port = '"$httpport"'/' /usr/src/steve/src/main/resources/config/prod/main.properties +sed -i 's/^server.host .*$/server.host = 127.0.0.1/' /usr/src/steve/src/main/resources/config/prod/main.properties +sed -i 's/^http.port .*$/http.port = 8180/' /usr/src/steve/src/main/resources/config/prod/main.properties sed -i 's/^auth.user .*$/auth.user = '"$adminuser"'/' /usr/src/steve/src/main/resources/config/prod/main.properties sed -i 's/^auth.password .*$/auth.password = '"$adminpassword"'/' /usr/src/steve/src/main/resources/config/prod/main.properties sed -i 's/^ private final String timeZoneId .*$/ private final String timeZoneId = "'"$timezone"'";/' /usr/src/steve/src/main/java/de/rwth/idsg/steve/SteveConfiguration.java