SmartOS: add LX_ZONE detection

This commit is contained in:
Reza Jelveh
2019-08-07 19:11:24 +08:00
parent e37768ca86
commit be907a0b9b
+10
View File
@@ -64,3 +64,13 @@ if [ "$ARCHITECTURE" != "x86_64" ] && [ "$ARCHITECTURE" != "i686" ]; then
echo "You are on your own."
echo
fi
# Check if we're running in a SmartOS LX zone and disable firewall and
# accordingly.
KERNEL_VERSION=$(uname -v)
if [[ "$KERNEL_VERSION" =~ "BrandZ virtual linux" ]]; then
echo "WARNING: Mail-in-a-Box will disable firewall setttings please make sure to handle this yourself."
DISABLE_FIREWALL=1
LX_ZONE=1
fi