[PR #5071] [MERGED] fix(update.sh): allow skipping ssl setup when updating #5769

Closed
opened 2026-11-02 04:03:57 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/MHSanaei/3x-ui/pull/5071
Author: @tokenicrat
Created: 6/8/2026
Status: ✅ Merged
Merged: 6/8/2026
Merged by: @MHSanaei

Base: main ← Head: main


📝 Commits (1)

  • 8cf1189 fix(update.sh): allow skipping ssl setup when updating

📊 Changes

1 file changed (+39 additions, -2 deletions)

View changed files

📝 update.sh (+39 -2)

📄 Description

Summary

Sync "Skip SSL" option from install.sh to update.sh, allowing user to skip SSL setup.

Why

As reported in #4898 the update script update.sh doesn't allow user to skip SSL setup, while install script install.sh does. It doesn't make sense that they should behave differently.

Skipping SSL makes it easy to use reverse proxy, which is more flexible (and sometimes actually safer) for advanced users.

Type of change

  • Bug fix
  • New feature
  • Refactoring (no behavior change)
  • Documentation
  • Tests only
  • Build / CI / tooling
  • Other

Areas affected

  • Frontend (UI / panel pages)
  • Backend (API endpoints, login, settings)
  • Xray config generation
  • Subscription (share links / Clash / JSON)
  • Statistics / traffic counters
  • Database / migrations
  • Install / upgrade script
  • Docker image
  • Multi-node (sub-nodes)
  • Telegram bot

How was this tested?

I performed an installation in VM and no error was reported. Since I'm porting existing code, the fix should be safe.

Checklist

  • I tested the change locally and confirmed the described behavior.
  • I added or updated tests for the new behavior (when applicable). (Not applicable)
  • go build ./... and the test suite pass locally.
  • For frontend changes: npm run lint, npm run typecheck, and npm run build pass. (Not applicable)
  • I updated the Wiki / README / API docs if user-facing behavior changed. (Not applicable)
  • My commits follow the project's existing message style.
  • I have no unrelated changes mixed into this PR.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/MHSanaei/3x-ui/pull/5071 **Author:** [@tokenicrat](https://github.com/tokenicrat) **Created:** 6/8/2026 **Status:** ✅ Merged **Merged:** 6/8/2026 **Merged by:** [@MHSanaei](https://github.com/MHSanaei) **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (1) - [`8cf1189`](https://github.com/MHSanaei/3x-ui/commit/8cf11895002b6a0c4a8e6237983f7479ba6cde55) fix(update.sh): allow skipping ssl setup when updating ### 📊 Changes **1 file changed** (+39 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `update.sh` (+39 -2) </details> ### 📄 Description ## Summary <!-- What does this PR do? One or two sentences. --> Sync "Skip SSL" option from `install.sh` to `update.sh`, allowing user to skip SSL setup. ## Why <!-- What problem does this solve, or what use case does it enable? Link related issues here: "Closes #123", "Refs #456". --> As reported in #4898 the update script `update.sh` doesn't allow user to skip SSL setup, while install script `install.sh` does. It doesn't make sense that they should behave differently. Skipping SSL makes it easy to use reverse proxy, which is more flexible (and sometimes actually safer) for advanced users. ## Type of change - [x] Bug fix - [ ] New feature - [ ] Refactoring (no behavior change) - [ ] Documentation - [ ] Tests only - [ ] Build / CI / tooling - [ ] Other ## Areas affected - [ ] Frontend (UI / panel pages) - [ ] Backend (API endpoints, login, settings) - [ ] Xray config generation - [ ] Subscription (share links / Clash / JSON) - [ ] Statistics / traffic counters - [ ] Database / migrations - [x] Install / upgrade script - [ ] Docker image - [ ] Multi-node (sub-nodes) - [ ] Telegram bot ## How was this tested? <!-- Concrete steps the reviewer can repeat. For UI changes: which page, which actions, which browser. For backend: which endpoint, which payload, which response. Mention any new unit/integration tests added. --> I performed an installation in VM and no error was reported. Since I'm porting existing code, the fix should be safe. ## Checklist - [x] I tested the change locally and confirmed the described behavior. - [ ] ~~I added or updated tests for the new behavior (when applicable).~~ (Not applicable) - [x] `go build ./...` and the test suite pass locally. - [ ] ~~For frontend changes: `npm run lint`, `npm run typecheck`, and `npm run build` pass.~~ (Not applicable) - [ ] ~~I updated the Wiki / README / API docs if user-facing behavior changed.~~ (Not applicable) - [x] My commits follow the project's existing message style. - [x] I have no unrelated changes mixed into this PR. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-02 04:03:57 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#5769
No description provided.