fix scripts

This commit is contained in:
Alireza Ahmadi
2025-01-07 23:41:38 +01:00
parent 906769e21a
commit f06840eaea
2 changed files with 5 additions and 4 deletions
+2 -2
View File
@@ -224,7 +224,7 @@ install_s-ui() {
tar zxvf s-ui-linux-$(arch).tar.gz tar zxvf s-ui-linux-$(arch).tar.gz
rm s-ui-linux-$(arch).tar.gz -f rm s-ui-linux-$(arch).tar.gz -f
chmod +x s-ui/sui /s-ui/s-ui.sh chmod +x s-ui/sui s-ui/s-ui.sh
cp s-ui/s-ui.sh /usr/bin/s-ui cp s-ui/s-ui.sh /usr/bin/s-ui
cp -rf s-ui /usr/local/ cp -rf s-ui /usr/local/
cp -f s-ui/*.service /etc/systemd/system/ cp -f s-ui/*.service /etc/systemd/system/
@@ -236,7 +236,7 @@ install_s-ui() {
systemctl enable s-ui --now systemctl enable s-ui --now
echo -e "${green}s-ui v${last_version}${plain} installation finished, it is up and running now..." echo -e "${green}s-ui v${last_version}${plain} installation finished, it is up and running now..."
echo -e "You may access the Panel with following URL(s):${yellow}" echo -e "You may access the Panel with following URL(s):${green}"
/usr/local/s-ui/sui uri /usr/local/s-ui/sui uri
echo -e "${plain}" echo -e "${plain}"
echo -e "" echo -e ""
+3 -2
View File
@@ -251,6 +251,7 @@ set_setting() {
view_setting() { view_setting() {
/usr/local/s-ui/sui setting -show /usr/local/s-ui/sui setting -show
view_uri
before_show_menu before_show_menu
} }
@@ -261,7 +262,7 @@ view_uri() {
before_show_menu before_show_menu
fi fi
LOGI "You may access the Panel with following URL(s):" LOGI "You may access the Panel with following URL(s):"
echo -e "${yellow}${info}${reset}" echo -e "${green}${info}${plain}"
} }
start() { start() {
@@ -850,7 +851,7 @@ show_menu() {
check_install && set_setting check_install && set_setting
;; ;;
10) 10)
check_install && view_setting && view_uri check_install && view_setting
;; ;;
11) 11)
check_install && start s-ui check_install && start s-ui