Skip to content

Commit a7beb72

Browse files
committed
override with config in storage root if it exists
1 parent 22322f5 commit a7beb72

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

setup/start.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,13 @@ if [ -f /etc/mailinabox.conf ]; then
3838
cat /etc/mailinabox.conf | sed s/^/DEFAULT_/ >/tmp/mailinabox.prev.conf
3939
source /tmp/mailinabox.prev.conf
4040
rm -f /tmp/mailinabox.prev.conf
41+
42+
# Since this is a second run, attempt to read overridden settings from $STORAGE_ROOT/mailinabox.conf
43+
if [ -f $DEFAULT_STORAGE_ROOT/mailinabox.conf ]; then
44+
cat $DEFAULT_STORAGE_ROOT/mailinabox.conf | sed s/^/DEFAULT_/ >/tmp/mailinabox.prev.conf
45+
source /tmp/mailinabox.prev.conf
46+
rm -f /tmp/mailinabox.prev.conf
47+
fi
4148
else
4249
FIRST_TIME_SETUP=1
4350
fi

0 commit comments

Comments
 (0)