Files
omarchy/migrations/1756911131.sh
Martin Mose Facondini 136a2268ea refactor: pr feedback - ufw
2025-09-03 21:02:12 +02:00

12 lines
339 B
Bash
Executable File

echo "Enable UFW systemd service for existing installations"
if omarchy-cmd-present ufw; then
if sudo ufw status | grep -q "Status: active\|22/tcp\|53317"; then
if ! systemctl is-enabled ufw >/dev/null 2>&1; then
sudo systemctl enable ufw --now
echo "UFW systemd service enabled"
fi
fi
fi