From e488dc18b1304b3bd2338dce7391242f16700126 Mon Sep 17 00:00:00 2001
From: shahin-io <115543613+shahin-io@users.noreply.github.com>
Date: Mon, 4 Dec 2023 19:29:36 +0000
Subject: [PATCH] x-ui menu edit typo (#680)
* Update README.md
* Update x-ui.sh
---------
Co-authored-by: Shahin-IO <115543613+shahin-io@users.noreply.github.com>
---
README.md | 48 ++++++++++++++++++++++++------------------------
x-ui.sh | 34 ++++++++++++++++++----------------
2 files changed, 42 insertions(+), 40 deletions(-)
diff --git a/README.md b/README.md
index eedab67d..4ccaa4ef 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-# x-ui
+# X-UI


@@ -8,7 +8,7 @@
> **Disclaimer: This project is only for personal learning and communication, please do not use it for illegal purposes, please do not use it in a production environment**
-xray panel supporting multi-protocol, **Multi-lang (English,Farsi,Chinese,Russian)**
+**Xray Panel Supporting Multi-Protocol, Multi-lang (English,Farsi,Chinese,Russian)**
| Features | Enable? |
| ------------------------------------ | :----------------: |
@@ -32,13 +32,13 @@ xray panel supporting multi-protocol, **Multi-lang (English,Farsi,Chinese,Russia
- Tron USDT (TRC20): `TYTq73Gj6dJ67qe58JVPD9zpjW2cc9XgVz`
- Tezos (XTZ): tz2Wnh2SsY1eezXrcLChu6idWpgdHzUFQcts
-# Install & Upgrade to latest version
+## Install & Upgrade to latest Version
```sh
bash <(curl -Ls https://raw.githubusercontent.com/alireza0/x-ui/master/install.sh)
```
-## Install custom version
+## Install Custom Version
To install your desired version you can add the version to the end of install command. Example for ver `0.5.2`:
@@ -46,7 +46,7 @@ To install your desired version you can add the version to the end of install co
bash <(curl -Ls https://raw.githubusercontent.com/alireza0/x-ui/master/install.sh) 0.5.2
```
-## Manual install & upgrade
+## Manual Install & Upgrade
1. First download the latest compressed package from https://github.com/alireza0/x-ui/releases, generally choose Architecture `amd64`
2. Then upload the compressed package to the server's `/root/` directory and login to the server with user `root`
@@ -68,15 +68,15 @@ systemctl enable x-ui
systemctl restart x-ui
```
-## Install using docker
+## Install Using Docker
-1. install docker
+1. Install Docker
```shell
curl -fsSL https://get.docker.com | sh
```
-2. install x-ui
+2. Install X-UI
```shell
mkdir x-ui && cd x-ui
@@ -95,7 +95,7 @@ docker run -itd \
docker build -t x-ui .
```
-# Features
+## Features
- System Status Monitoring
- Search within all inbounds and clients
@@ -114,14 +114,14 @@ docker build -t x-ui .
- Support export/import database from panel
- Show online users
-## suggestion system
+## Recommended OS
- CentOS 8+
- Ubuntu 20+
- Debian 10+
- Fedora 36+
-## API routes
+## API Routes
- `/login` with `PUSH` user data: `{username: '', password: ''}` for login
- `/xui/API/inbounds` base for following actions:
@@ -150,7 +150,7 @@ docker build -t x-ui .
- `client.password` for TROJAN
- `client.email` for Shadowsocks
-# Environment Variables
+## Environment Variables
| Variable | Type | Default |
| -------------- | :--------------------------------------------: | :------------ |
@@ -159,14 +159,14 @@ docker build -t x-ui .
| XUI_BIN_FOLDER | `string` | `"bin"` |
| XUI_DB_FOLDER | `string` | `"/etc/x-ui"` |
-# Screenshots
+## Screenshots




-## SSL certificate application
+## SSL Certificate Application
Click for details
@@ -183,7 +183,7 @@ certbot certonly --standalone --register-unsafely-without-email --non-interactiv
-## Tg robot use
+## Telegram Bot
Click for details
@@ -224,18 +224,18 @@ Reference syntax:
- Multi language bot
-# T-Shoots:
+## T-Shoots
-**If you upgrade from an old version or other forks, for enable traffic for users you should do :**
+**Please be aware if you upgrade from an old X-UI version or other forks, by default data traffic usage for users may not work! it's recommended to follow below steps for enabeling:**
-find this in config :
+1. Find this section in config file
```json
"policy": {
"system": {
```
-**and add this just after ` "policy": {` :**
+2. Add below section just after ` "policy": {` :
```json
"levels": {
@@ -246,7 +246,7 @@ find this in config :
},
```
-**the final output is like :**
+- The final output is like:
```json
"policy": {
@@ -265,20 +265,20 @@ find this in config :
"routing": {
```
-restart panel
+3. Save and restart panel
-# a special thanks to
+## a Special Thanks to
- [HexaSoftwareTech](https://github.com/HexaSoftwareTech/)
- [MHSanaei](https://github.com/MHSanaei)
-# Acknowledgment
+## Acknowledgment
- [Iran Hosted Domains](https://github.com/bootmortis/iran-hosted-domains) (License: **MIT**): _A comprehensive list of Iranian domains and services that are hosted within the country._
- [PersianBlocker](https://github.com/MasterKia/PersianBlocker) (License: **AGPLv3**): _An optimal and extensive list to block ads and trackers on Persian websites._
-## Stargazers over time
+## Stargazers over Time
[](https://starchart.cc/alireza0/x-ui)
diff --git a/x-ui.sh b/x-ui.sh
index 46899692..97517fc0 100644
--- a/x-ui.sh
+++ b/x-ui.sh
@@ -613,27 +613,29 @@ ssl_cert_issue_CF() {
}
show_usage() {
- echo "x-ui control menu usages: "
+ echo "X-UI Control Menu Usage"
echo "------------------------------------------"
- echo "x-ui - Enter Admin menu"
- echo "x-ui start - Start x-ui"
- echo "x-ui stop - Stop x-ui"
- echo "x-ui restart - Restart x-ui"
- echo "x-ui status - Show x-ui status"
- echo "x-ui enable - Enable x-ui on system startup"
- echo "x-ui disable - Disable x-ui on system startup"
- echo "x-ui log - Check x-ui logs"
- echo "x-ui update - Update x-ui"
- echo "x-ui install - Install x-ui"
- echo "x-ui uninstall - Uninstall x-ui"
+ echo "SUBCOMMANDS:"
+ echo "x-ui - Admin management script"
+ echo "x-ui start - Start X-UI"
+ echo "x-ui stop - Stop X-UI"
+ echo "x-ui restart - Restart X-UI"
+ echo "x-ui status - Current X-UI status"
+ echo "x-ui enable - Enable X-UI on system startup"
+ echo "x-ui disable - Disable X-UI on system startup"
+ echo "x-ui log - Check X-UI logs"
+ echo "x-ui update - Update X-UI"
+ echo "x-ui install - Install X-UI"
+ echo "x-ui uninstall - Uninstall X-UI"
+ echo "x-ui help - Control menu usage"
echo "------------------------------------------"
}
show_menu() {
echo -e "
- ${green}X-UI Panel Management Script${plain}
+ ${green}X-UI Admin Management Script ${plain}
————————————————
- ${green}0.${plain} Exit Script
+ ${green}0.${plain} Exit
————————————————
${green}1.${plain} Install X-UI
${green}2.${plain} Update X-UI
@@ -646,7 +648,7 @@ show_menu() {
————————————————
${green}8.${plain} Start X-UI
${green}9.${plain} Stop X-UI
- ${green}10.${plain} Reboot X-UI
+ ${green}10.${plain} Restart X-UI
${green}11.${plain} Check X-UI State
${green}12.${plain} Check X-UI Logs
————————————————
@@ -717,7 +719,7 @@ show_menu() {
ssl_cert_issue_CF
;;
*)
- LOGE "Please enter the correct number [0-16]"
+ LOGE "Please enter the correct number [0-17]"
;;
esac
}