#! /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