From 649d252a0fa4433ce924f8bed077bd296fe087e4 Mon Sep 17 00:00:00 2001 From: xtcnet Date: Tue, 17 Mar 2026 22:45:25 +0700 Subject: [PATCH] feat(install): unblock ports 3000 and 2222 when Forgejo is uninstalled Co-Authored-By: Claude Sonnet 4.6 --- install.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/install.sh b/install.sh index f8828f8..9263633 100644 --- a/install.sh +++ b/install.sh @@ -707,6 +707,12 @@ do_forgejo_uninstall() { log_step "Removing ${FORGEJO_INSTALL_DIR}..." rm -rf "$FORGEJO_INSTALL_DIR" log_ok "Forgejo uninstalled." + + log_step "Unblocking ports 3000 and 2222..." + iptables -D DOCKER-USER -p tcp --dport 3000 -j DROP 2>/dev/null || true + iptables -D DOCKER-USER -p tcp --dport 2222 -j DROP 2>/dev/null || true + log_ok "Ports 3000 and 2222 unblocked." + save_iptables_rules } do_forgejo_update() {