summaryrefslogtreecommitdiffstats
path: root/ip.sh
blob: d5b9a9867fa3bb0af8bf54e0465150c3415a67ec (plain)
1
2
3
4
5
6
7
8
#! /bin/bash

name=$(uname -n | cut -d '.' -f 1)
[ -f "ip/$name.sh" ] || { echo "Host $name not configured"; exit 1; }

systemctl stop firewalld

ip/$name.sh