1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2024-11-22 02:17:26 +00:00

Add check to preflight for exec on tmp

This commit is contained in:
Michael Kroes 2016-02-21 12:43:04 -05:00
parent 3d933c16d0
commit 42f879687f

View File

@ -33,3 +33,11 @@ if [ ! -d /vagrant ]; then
exit
fi
fi
# Check that tempfs is not mounted with noexec
MOUNTED_TMP_AS_NO_EXEC=$(grep "/tmp.*noexec" /proc/mounts)
if [ -n "$MOUNTED_TMP_AS_NO_EXEC" ]; then
echo "Mail-in-a-Box has to have exec rights on /tmp, please mount /tmp with exec"
exit
fi