1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2025-04-04 00:17:06 +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 if [ -z "${STORAGE_ROOT:-}" ]; then
source /etc/mailinabox.conf if [ -s /etc/mailinabox.conf ]; then
[ $? -eq 0 ] || exit 1 source /etc/mailinabox.conf
else [ $? -eq 0 ] || exit 1
STORAGE_ROOT="/home/${STORAGE_USER:-user-data}" else
STORAGE_ROOT="/home/${STORAGE_USER:-user-data}"
fi
fi fi
EHDD_IMG="$STORAGE_ROOT.HDD" EHDD_IMG="$STORAGE_ROOT.HDD"