SmartOS: add LX_ZONE detection

This commit is contained in:
Reza Jelveh 2017-11-27 10:14:58 +01:00
parent e37768ca86
commit be907a0b9b
1 changed files with 10 additions and 0 deletions

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