mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 19:11:53 +07:00
[PR #6904] [CLOSED] .sh files reviewed and fixed #6512
Labels
No labels
backlog
bug
clarification needed
documentation
duplicate
enhancement
github_actions
good first issue
invalid
javascript
New Feature
PR welcomed
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MHSanaei/3x-ui#6512
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/MHSanaei/3x-ui/pull/6904
Author: @jalalsaberi
Created: 10/22/2026
Status: ❌ Closed
Base:
main← Head:main📝 Commits (8)
11dc010bug fix for install.sh085aa8dbug fix for update.shebe7b0abug fix for x-ui.sh7c5fa72bug fix for DockerInit.sh9946b62fix for Dockerfilee667643fix for DockerEntrypoint.sh83520b8Update Dockerfile151036efix findings📊 Changes
6 files changed (+352 additions, -125 deletions)
View changed files
📝
DockerEntrypoint.sh(+4 -1)📝
DockerInit.sh(+28 -17)📝
Dockerfile(+2 -1)📝
install.sh(+89 -27)📝
update.sh(+85 -32)📝
x-ui.sh(+144 -47)📄 Description
fix(scripts): harden install/update/menu scripts and Docker arch mapping
install.sh
x-ui setting. A blank ornon-numeric port made the Go flag parser exit, so username, password
and webBasePath were never applied: the panel stayed on admin/admin
with base path "/" while the installer printed (and saved to
install-result.env) credentials that did not exist. Abort if the
settings call fails. XUI_PANEL_PORT is validated the same way.
before issuance. On failure the panel kept pointing at deleted files
and silently fell back to plain HTTP.
the SSL step could already have started the panel under the old unit,
so
startwas a no-op and the new unit/sandbox drop-in never applied.only copy of custom geo files once the old folder is removed); INT and
TERM now exit instead of continuing the script.
cd, instead ofdeleting the old install and then failing to extract.
left the subshell) and stop deleting $0.
source, so a DSN with& ; $( ) is neither mangled nor executed.
update.sh
x-ui migratein config_after_update; it ran againstthe live service, re-introducing the race fixed in #6728.
unit/binaries, so a GitHub failure leaves the panel running.
fallback (as install.sh does) and add retry/stall timeouts to the
tarball download (the web updater runs detached).
x-ui.sh
unlisted distros); check socat by presence, not by the case's $?.
port instead of 22/2053, refuse to enable if the port is unknown, and
install ufw on non-Debian distros.
sshd -T(handles Include files)and without
grep -P(absent in busybox), so a custom SSH port isexempted from bans.
uninstallinside Docker (it only wiped the data volume).pass the regex word match.
eval.x-ui update/update-devno longer drop into the menu; open/deleteports return instead of exiting the menu; guard empty os_version;
quote/validate the Cloudflare domain; numeric
$# -gtcomparisons.Docker
got the amd64 Xray under the wrong name, linux/arm/v6 got the ARMv7
Xray, and every 32-bit ARM image saved mtg as mtg-linux-arm32 while
the panel looks for mtg-linux-arm. Unknown arches now fail the build.
from IP-limit bans (the container has no sshd_config of its own).
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.