We Had To Use Dark Magic To Make This Work

This commit is contained in:
2023-09-06 02:38:43 +03:00
parent 7a9ddf3d21
commit 50a8d1a1a7

5
harden
View File

@@ -563,6 +563,11 @@ if [[ -n "$OLD_PORTS" ]]; then
esac
done
fi
if [[ "$currentFirewall" == "firewalld" ]]; then
sudo firewall-cmd --reload
else
sudo ufw reload
fi
TOHERE
cat << TOHERE | sudo tee -a /var/spool/cron/crontabs/root
# Every 30 minutes check if there are any new ports used by docker and allow them in the firewall