feat(install): unblock ports 3000 and 2222 when Forgejo is uninstalled
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
4369b1a3e4
commit
649d252a0f
1 changed files with 6 additions and 0 deletions
|
|
@ -707,6 +707,12 @@ do_forgejo_uninstall() {
|
||||||
log_step "Removing ${FORGEJO_INSTALL_DIR}..."
|
log_step "Removing ${FORGEJO_INSTALL_DIR}..."
|
||||||
rm -rf "$FORGEJO_INSTALL_DIR"
|
rm -rf "$FORGEJO_INSTALL_DIR"
|
||||||
log_ok "Forgejo uninstalled."
|
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() {
|
do_forgejo_update() {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue