turn on bash strict mode to better catch setup errors

fixes #893
This commit is contained in:
Joshua Tauberer
2018-11-30 10:46:54 -05:00
parent aa52f52d02
commit e5e0c64395
7 changed files with 47 additions and 34 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ if [ $TOTAL_PHYSICAL_MEM -lt 750000 ]; then
fi
# Check that tempfs is mounted with exec
MOUNTED_TMP_AS_NO_EXEC=$(grep "/tmp.*noexec" /proc/mounts)
MOUNTED_TMP_AS_NO_EXEC=$(grep "/tmp.*noexec" /proc/mounts || /bin/true)
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