Skip to content

Commit

Permalink
override with config in storage root if it exists
Browse files Browse the repository at this point in the history
  • Loading branch information
bilogic committed Apr 21, 2024
1 parent 22322f5 commit a7beb72
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions setup/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@ if [ -f /etc/mailinabox.conf ]; then
cat /etc/mailinabox.conf | sed s/^/DEFAULT_/ >/tmp/mailinabox.prev.conf
source /tmp/mailinabox.prev.conf
rm -f /tmp/mailinabox.prev.conf

# Since this is a second run, attempt to read overridden settings from $STORAGE_ROOT/mailinabox.conf
if [ -f $DEFAULT_STORAGE_ROOT/mailinabox.conf ]; then
cat $DEFAULT_STORAGE_ROOT/mailinabox.conf | sed s/^/DEFAULT_/ >/tmp/mailinabox.prev.conf
source /tmp/mailinabox.prev.conf
rm -f /tmp/mailinabox.prev.conf
fi
else
FIRST_TIME_SETUP=1
fi
Expand Down

0 comments on commit a7beb72

Please sign in to comment.