mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-05-15 04:38:07 +00:00
update commands
This commit is contained in:
parent
4033001798
commit
b5a32ef57e
2 changed files with 35 additions and 23 deletions
25
install.sh
25
install.sh
|
@ -218,18 +218,21 @@ install_x-ui() {
|
||||||
echo -e ""
|
echo -e ""
|
||||||
echo -e "x-ui control menu usages: "
|
echo -e "x-ui control menu usages: "
|
||||||
echo -e "----------------------------------------------"
|
echo -e "----------------------------------------------"
|
||||||
echo -e "x-ui - Enter Admin menu"
|
echo -e "SUBCOMMANDS:"
|
||||||
echo -e "x-ui start - Start x-ui"
|
echo -e "x-ui - Admin Management Script"
|
||||||
echo -e "x-ui stop - Stop x-ui"
|
echo -e "x-ui start - Start"
|
||||||
echo -e "x-ui restart - Restart x-ui"
|
echo -e "x-ui stop - Stop"
|
||||||
echo -e "x-ui status - Show x-ui status"
|
echo -e "x-ui restart - Restart"
|
||||||
echo -e "x-ui enable - Enable x-ui on system startup"
|
echo -e "x-ui status - Current Status"
|
||||||
echo -e "x-ui disable - Disable x-ui on system startup"
|
echo -e "x-ui settings - Current Settings"
|
||||||
echo -e "x-ui log - Check x-ui logs"
|
echo -e "x-ui enable - Enable Autostart on OS Startup"
|
||||||
|
echo -e "x-ui disable - Disable Autostart on OS Startup"
|
||||||
|
echo -e "x-ui log - Check logs"
|
||||||
echo -e "x-ui banlog - Check Fail2ban ban logs"
|
echo -e "x-ui banlog - Check Fail2ban ban logs"
|
||||||
echo -e "x-ui update - Update x-ui"
|
echo -e "x-ui update - Update"
|
||||||
echo -e "x-ui install - Install x-ui"
|
echo -e "x-ui custom - custom version"
|
||||||
echo -e "x-ui uninstall - Uninstall x-ui"
|
echo -e "x-ui install - Install"
|
||||||
|
echo -e "x-ui uninstall - Uninstall"
|
||||||
echo -e "----------------------------------------------"
|
echo -e "----------------------------------------------"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
33
x-ui.sh
33
x-ui.sh
|
@ -1253,24 +1253,27 @@ remove_iplimit() {
|
||||||
show_usage() {
|
show_usage() {
|
||||||
echo "x-ui control menu usages: "
|
echo "x-ui control menu usages: "
|
||||||
echo "------------------------------------------"
|
echo "------------------------------------------"
|
||||||
echo -e "x-ui - Enter control menu"
|
echo -e "SUBCOMMANDS:"
|
||||||
echo -e "x-ui start - Start x-ui "
|
echo -e "x-ui - Admin Management Script"
|
||||||
echo -e "x-ui stop - Stop x-ui "
|
echo -e "x-ui start - Start"
|
||||||
echo -e "x-ui restart - Restart x-ui "
|
echo -e "x-ui stop - Stop"
|
||||||
echo -e "x-ui status - Show x-ui status"
|
echo -e "x-ui restart - Restart"
|
||||||
echo -e "x-ui enable - Enable x-ui on system startup"
|
echo -e "x-ui status - Current Status"
|
||||||
echo -e "x-ui disable - Disable x-ui on system startup"
|
echo -e "x-ui settings - Current Settings"
|
||||||
echo -e "x-ui log - Check x-ui logs"
|
echo -e "x-ui enable - Enable Autostart on OS Startup"
|
||||||
|
echo -e "x-ui disable - Disable Autostart on OS Startup"
|
||||||
|
echo -e "x-ui log - Check logs"
|
||||||
echo -e "x-ui banlog - Check Fail2ban ban logs"
|
echo -e "x-ui banlog - Check Fail2ban ban logs"
|
||||||
echo -e "x-ui update - Update x-ui "
|
echo -e "x-ui update - Update"
|
||||||
echo -e "x-ui install - Install x-ui "
|
echo -e "x-ui custom - custom version"
|
||||||
echo -e "x-ui uninstall - Uninstall x-ui "
|
echo -e "x-ui install - Install"
|
||||||
|
echo -e "x-ui uninstall - Uninstall"
|
||||||
echo "------------------------------------------"
|
echo "------------------------------------------"
|
||||||
}
|
}
|
||||||
|
|
||||||
show_menu() {
|
show_menu() {
|
||||||
echo -e "
|
echo -e "
|
||||||
${green}3X-ui Panel Management Script${plain}
|
${green}3X-UI Panel Management Script${plain}
|
||||||
${green}0.${plain} Exit Script
|
${green}0.${plain} Exit Script
|
||||||
————————————————
|
————————————————
|
||||||
${green}1.${plain} Install
|
${green}1.${plain} Install
|
||||||
|
@ -1398,6 +1401,9 @@ if [[ $# > 0 ]]; then
|
||||||
"status")
|
"status")
|
||||||
check_install 0 && status 0
|
check_install 0 && status 0
|
||||||
;;
|
;;
|
||||||
|
"settings")
|
||||||
|
check_install 0 && check_config 0
|
||||||
|
;;
|
||||||
"enable")
|
"enable")
|
||||||
check_install 0 && enable 0
|
check_install 0 && enable 0
|
||||||
;;
|
;;
|
||||||
|
@ -1413,6 +1419,9 @@ if [[ $# > 0 ]]; then
|
||||||
"update")
|
"update")
|
||||||
check_install 0 && update 0
|
check_install 0 && update 0
|
||||||
;;
|
;;
|
||||||
|
"custom")
|
||||||
|
check_install 0 && custom_version 0
|
||||||
|
;;
|
||||||
"install")
|
"install")
|
||||||
check_uninstall 0 && install 0
|
check_uninstall 0 && install 0
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in a new issue