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:
parent
3d933c16d0
commit
42f879687f
@ -33,3 +33,11 @@ if [ ! -d /vagrant ]; then
|
|||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
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
|
||||||
|
Loading…
Reference in New Issue
Block a user