403Webshell
Server IP : 192.158.238.246  /  Your IP : 18.117.196.112
Web Server : LiteSpeed
System : Linux uniform.iwebfusion.net 4.18.0-553.27.1.lve.1.el8.x86_64 #1 SMP Wed Nov 20 15:58:00 UTC 2024 x86_64
User : jenniferflocom ( 1321)
PHP Version : 8.1.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/local/lsws/add-ons/cpanel/lsws_whm_plugin/bin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/local/lsws/add-ons/cpanel/lsws_whm_plugin/bin/lsws_cmd.sh
#!/bin/sh

cd `dirname "$0"`
LSWS_HOME=$1
CMD=$2

if [ "x$CMD" = "x" ] ; then
    echo [ERROR] Missing command.
    exit 1
fi

. ./lsws_func 2>/dev/null
if [ $? != 0 ]; then
    . ./lsws_func

    if [ $? != 0 ]; then
        echo [ERROR] Can not include 'lsws_func'.
        exit 1
    fi
fi

init_var

if [ "$CMD" = "CHANGE_PORT_OFFSET" ] ; then
    change_port_offset $3

elif [ "$CMD" = "CHECK_LSWS_RUNNING" ] ; then
    detect_lsws_pid
    echo $LSPID

elif [ "$CMD" = "CHECK_AP_RUNNING" ] ; then
    detect_ap_pid
    echo $APPID

elif [ "$CMD" = "RESTART_LSWS" ] ; then
    $LSWS_CTLCMD restart 2>&1

elif [ "$CMD" = "STOP_LSWS" ] ; then
    stop_lsws

elif [ "$CMD" = "CHECK_LICENSE" ] ; then
    CheckLicense

#
# Update cp_switch_ws.sh when making changes that affect this command.
#
elif [ "$CMD" = "SWITCH_TO_LSWS" ] ; then
    SwitchToLiteSpeed
    SetRunOnBoot

#
# Update cp_switch_ws.sh when making changes that affect this command.
#
elif [ "$CMD" = "SWITCH_TO_APACHE" ] ; then
    SwitchToApache
    SetRunOnBoot

#
# 01/29/19: This command is called directly by the cPanel team. Do not change
#           the call interface.
#
elif [ "$CMD" = "CHANGE_LICENSE" ] ; then
    SwitchLicense $3

elif [ "$CMD" = "TRANSFER_LICENSE" ] ; then
    TransferLicense

elif [ "$CMD" = "VER_UP" ] ; then
    VersionUp $3

elif [ "$CMD" = "VER_SWITCH" ] ; then
    VersionSwitch $3

elif [ "$CMD" = "VER_DEL" ] ; then
    VersionDel $3

elif [ "$CMD" = "UNINSTALL" ] ; then
    UninstallLiteSpeed $3 $4

else
    echo "Unknown CMD"
fi














Youez - 2016 - github.com/yon3zu
LinuXploit