From: Ian Kelling Date: Fri, 16 May 2025 01:53:45 +0000 (-0400) Subject: move small script into work repo X-Git-Url: https://iankelling.org/git/?a=commitdiff_plain;h=cc4c3f7dac357561e654b71fe0ad0d31d3490f9a;p=distro-setup move small script into work repo --- diff --git a/iank-shorewall-fix b/iank-shorewall-fix deleted file mode 100755 index 6dc7b95..0000000 --- a/iank-shorewall-fix +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/bash - -set -xe - -home_ip=108.26.192.250 -a=$(md5sum /etc/shorewall/rules) -l="ACCEPT net:$home_ip fw tcp ssh # iank" -sed -ri "s/^.*[[:space:]]ssh[[:space:]]*# *iank *$/$l/" /etc/shorewall/rules -if ! grep -qF $home_ip /etc/shorewall/rules; then - echo " - -############## ############# ERROR SED FAILED!!!################ - -" -fi -b=$(md5sum /etc/shorewall/rules) -if [[ $a != "$b" ]]; then - echo "diff:$a $b" - shorewall restart -fi