1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2025-04-03 00:07:05 +00:00

honor STORAGE_ROOT if already set

This commit is contained in:
downtownallday 2022-10-14 15:03:12 -04:00
parent 1a0b94c878
commit 06495298c9

View File

@ -8,11 +8,13 @@
#####
if [ -s /etc/mailinabox.conf ]; then
source /etc/mailinabox.conf
[ $? -eq 0 ] || exit 1
else
STORAGE_ROOT="/home/${STORAGE_USER:-user-data}"
if [ -z "${STORAGE_ROOT:-}" ]; then
if [ -s /etc/mailinabox.conf ]; then
source /etc/mailinabox.conf
[ $? -eq 0 ] || exit 1
else
STORAGE_ROOT="/home/${STORAGE_USER:-user-data}"
fi
fi
EHDD_IMG="$STORAGE_ROOT.HDD"