HEX
Server: Apache
System: Linux vpshost0650.publiccloud.com.br 4.4.79-grsec-1.lc.x86_64 #1 SMP Wed Aug 2 14:18:21 -03 2017 x86_64
User: bandeirantesbomb3 (10068)
PHP: 8.0.7
Disabled: apache_child_terminate,dl,escapeshellarg,escapeshellcmd,exec,link,mail,openlog,passthru,pcntl_alarm,pcntl_exec,pcntl_fork,pcntl_get_last_error,pcntl_getpriority,pcntl_setpriority,pcntl_signal,pcntl_signal_dispatch,pcntl_sigprocmask,pcntl_sigtimedwait,pcntl_sigwaitinfo,pcntl_strerror,pcntl_wait,pcntl_waitpid,pcntl_wexitstatus,pcntl_wifexited,pcntl_wifsignaled,pcntl_wifstopped,pcntl_wstopsig,pcntl_wtermsig,php_check_syntax,php_strip_whitespace,popen,proc_close,proc_open,shell_exec,symlink,system
Upload Files
File: //sbin/lwcorp
#!/bin/bash

## LWCORP - Utilitario de configuracoes Locaweb Corp.
## by @wili4m 2013 - (wiliam.freitas - wiliam.freitas@locaweb.com.br)

# GLOBAL VARS AND FUNCTIONS
. /etc/lwcorp/lwcorp.functions

LOGTYPE="inicio"

eventlog

MENU_INICIAL=`dialog --backtitle "$LWCORPHEADER" --stdout --title "$TITLELWCORP" \
     --radiolist "\n SELECIONE A OPCAO:" \
     0 0 0 \
     "Apache2" 'Reload/Restart, Limites, Configuracao de IP em Vhost e de SSL;' off \
     "Newrelic" 'Configura Newrelic-Daemon e/ou NRsysmon;' off \
     "Rede" 'Configuracao de IP adicional.' off`

# O case abaixo chama functions presentes neste mesmo script de
# acordo com a opcao selecionada no menu inicial:

case $MENU_INICIAL in
     'Apache2') LOGTYPE="apache2" ; eventlog ; funcoes_apache2 ;;
     'Newrelic') LOGTYPE="newrelic" ; eventlog ; func_newrelic ;;
     'Rede') LOGTYPE="rede" ; eventlog ; funcoes_rede ;;
     *) echo "$LOGDATE - [Analista nao selecionou uma opcao. Processo abortado]" >> $LOGFILE;
        dialog --backtitle "$LWCORPHEADER" --stdout --title "$TITLECANCELADO" --msgbox "\nPROCESSO CANCELADO." 7 65; exit 1;;
esac