mirror of
https://github.com/alireza0/x-ui.git
synced 2026-03-14 05:23:09 +00:00
Add Restart request x-ui.sh
Add Restart request
This commit is contained in:
20
x-ui.sh
20
x-ui.sh
@@ -670,8 +670,14 @@ else
|
||||
fi
|
||||
|
||||
echo -e "---------------------------"
|
||||
sleep 2
|
||||
systemctl restart x-ui
|
||||
sleep 1
|
||||
read -p "Do you want to restart x-ui? (y/n): " restart_choice
|
||||
if [[ $restart_choice == [Yy] ]]; then
|
||||
systemctl restart x-ui
|
||||
echo "X-UI has been restarted."
|
||||
else
|
||||
echo "X-UI was not restarted."
|
||||
fi
|
||||
before_show_menu
|
||||
;;
|
||||
2)
|
||||
@@ -723,8 +729,14 @@ else
|
||||
fi
|
||||
|
||||
echo -e "---------------------------"
|
||||
sleep 2
|
||||
systemctl restart x-ui
|
||||
sleep 1
|
||||
read -p "Do you want to restart x-ui? (y/n): " restart_choice
|
||||
if [[ $restart_choice == [Yy] ]]; then
|
||||
systemctl restart x-ui
|
||||
echo "X-UI has been restarted."
|
||||
else
|
||||
echo "X-UI was not restarted."
|
||||
fi
|
||||
before_show_menu
|
||||
;;
|
||||
*)
|
||||
|
||||
Reference in New Issue
Block a user