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