Commit 42f87968 authored by Michael Kroes's avatar Michael Kroes

Add check to preflight for exec on tmp

parent 3d933c16
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment