mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2025-04-04 00:17:06 +00:00
output message only when appropriate
This commit is contained in:
parent
9b8fc905f6
commit
b2e4e8a38f
@ -31,8 +31,10 @@ if [ ! -e "$EHDD_IMG" ]; then
|
||||
rm -f "$EHDD_IMG"
|
||||
exit 1
|
||||
fi
|
||||
echo ""
|
||||
echo "NOTE: You will need to reenter your drive encryption password"
|
||||
if [ -z "$(keyfile_option)" ]; then
|
||||
echo ""
|
||||
echo "NOTE: You will need to reenter your drive encryption password"
|
||||
fi
|
||||
cryptsetup luksOpen $(keyfile_option) $loop $EHDD_LUKS_NAME # map device to /dev/mapper/NAME
|
||||
mke2fs -j /dev/mapper/$EHDD_LUKS_NAME
|
||||
# sleep a brief time to avoid "device busy"
|
||||
|
Loading…
Reference in New Issue
Block a user