Skip to content

Commit

Permalink
Merge pull request #19 from erik73/config
Browse files Browse the repository at this point in the history
Cleanup config from http-port setting that is no longer needed.
  • Loading branch information
erik73 authored Feb 3, 2021
2 parents d5eb603 + 8d07b37 commit ee77a1d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions steve/rootfs/etc/cont-init.d/10-create-config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ee77a1d

Please sign in to comment.