Added Upgrade
This commit is contained in:
6
menu.sh
6
menu.sh
@ -227,6 +227,10 @@ hysteria2_change_port_handler() {
|
|||||||
python3 $CLI_PATH change-hysteria2-port --port "$port"
|
python3 $CLI_PATH change-hysteria2-port --port "$port"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
hysteria_upgrade(){
|
||||||
|
bash /etc/hysteria/upgrade.sh
|
||||||
|
}
|
||||||
|
|
||||||
warp_configure_handler() {
|
warp_configure_handler() {
|
||||||
local service_name="wg-quick@wgcf.service"
|
local service_name="wg-quick@wgcf.service"
|
||||||
|
|
||||||
@ -374,6 +378,7 @@ display_main_menu() {
|
|||||||
echo -e "${LPurple}◇──────────────────────────────────────────────────────────────────────◇${NC}"
|
echo -e "${LPurple}◇──────────────────────────────────────────────────────────────────────◇${NC}"
|
||||||
echo -e "${green}[1] ${NC}↝ Hysteria2 Menu"
|
echo -e "${green}[1] ${NC}↝ Hysteria2 Menu"
|
||||||
echo -e "${cyan}[2] ${NC}↝ Advance Menu"
|
echo -e "${cyan}[2] ${NC}↝ Advance Menu"
|
||||||
|
echo -e "${cyan}[3] ${NC}↝ Update Panel"
|
||||||
echo -e "${red}[0] ${NC}↝ Exit"
|
echo -e "${red}[0] ${NC}↝ Exit"
|
||||||
echo -e "${LPurple}◇──────────────────────────────────────────────────────────────────────◇${NC}"
|
echo -e "${LPurple}◇──────────────────────────────────────────────────────────────────────◇${NC}"
|
||||||
echo -ne "${yellow}➜ Enter your option: ${NC}"
|
echo -ne "${yellow}➜ Enter your option: ${NC}"
|
||||||
@ -390,6 +395,7 @@ main_menu() {
|
|||||||
case $choice in
|
case $choice in
|
||||||
1) hysteria2_menu ;;
|
1) hysteria2_menu ;;
|
||||||
2) advance_menu ;;
|
2) advance_menu ;;
|
||||||
|
3) hysteria_upgrade ;;
|
||||||
0) exit 0 ;;
|
0) exit 0 ;;
|
||||||
*) echo "Invalid option. Please try again." ;;
|
*) echo "Invalid option. Please try again." ;;
|
||||||
esac
|
esac
|
||||||
|
|||||||
Reference in New Issue
Block a user