summaryrefslogtreecommitdiffstats
path: root/ip.sh
diff options
context:
space:
mode:
Diffstat (limited to 'ip.sh')
-rwxr-xr-xip.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/ip.sh b/ip.sh
index d5b9a98..45736b2 100755
--- a/ip.sh
+++ b/ip.sh
@@ -3,6 +3,6 @@
name=$(uname -n | cut -d '.' -f 1)
[ -f "ip/$name.sh" ] || { echo "Host $name not configured"; exit 1; }
-systemctl stop firewalld
+[ -f "/usr/bin/firewall-cmd" ] && systemctl stop firewalld
ip/$name.sh