HEX
Server: Apache
System: Linux dinesh8189 5.15.98-grsec-sharedvalley-2.lc.el8.x86_64 #1 SMP Thu Mar 9 09:07:30 -03 2023 x86_64
User: cgmgerenciamento1 (814285)
PHP: 8.1.26
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: //usr/lib/python3.6/site-packages/sos/report/plugins/__pycache__/alternatives.cpython-36.pyc
3

3��d 	�@sLddlmZmZmZGdd�de�ZGdd�dee�ZGdd�dee�ZdS)	�)�Plugin�RedHatPlugin�UbuntuPluginc@seZdZdZdZdd�ZdS)�AlternativeszSystem alternatives�alternativescs�|jd|j�g}dddddg}|j|j�}|ddkr�x2|d	j�D]"}|j�d}||krH|j|�qHWd
|jdf�|j�fdd
�|D��dS)Nz%s --versionZcdrecordZldZmkisofsZwhoisZxinputrcZstatusr�outputz%s --display %sz%scsg|]}�|�qS�r)�.0�alt)�disp_cmdr�"/usr/lib/python3.6/alternatives.py�
<listcomp>'sz&Alternatives.setup.<locals>.<listcomp>)Zadd_cmd_output�alternatives_cmdZcollect_cmd_output�alternatives_list�
splitlines�split�append)�selfZalts�ignore�res�liner
r)rr�setupszAlternatives.setupN)�__name__�
__module__�__qualname__Z
short_descZplugin_namerrrrrrsrcs0eZdZdZdZdZdeZ�fdd�Z�ZS)�RedHatAlternativesrz	%s --listcs"tt|�j�|jddd��dS)NZdisplay_javaZalternatives_display_python)zalternatives --display java.*zalternatives --display python.*)�superrrZadd_cmd_tags)r)�	__class__rrr2szRedHatAlternatives.setup)r)r)	rrr�packages�commandsrrr�
__classcell__rr)rrr*s
rcs0eZdZdZdZdZdeZ�fdd�Z�ZS)�UbuntuAlternatives�dpkg�update-alternativesz%s --get-selectionscs8tt|�j�|jd�r&|jdg�n|jddg�dS)NZall_logsz/var/log/alternatives.log*z/var/log/alternatives.logz/var/log/alternatives.log.1)rr!rZ
get_optionZ
add_copy_spec)r)rrrrEs

zUbuntuAlternatives.setup)r")r#)	rrrrrrrrr rr)rrr!=s
r!N)Zsos.report.pluginsrrrrrr!rrrr�<module>s