From a7beb721680d405f86567ba001caecdb5eb2fe7e Mon Sep 17 00:00:00 2001 From: bilogic <946010+bilogic@users.noreply.github.com> Date: Sun, 21 Apr 2024 17:26:30 +0800 Subject: [PATCH] override with config in storage root if it exists --- setup/start.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/setup/start.sh b/setup/start.sh index 995e1ac63..7bca5e9ae 100755 --- a/setup/start.sh +++ b/setup/start.sh @@ -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