/opt/dedrads/__pycache__
NameSizeModeActions
alp.cpython-313.pyc188170644editdlrm
check_prov.cpython-313.pyc63940644editdlrm
clean_exim.cpython-313.pyc89020644editdlrm
cmspass.cpython-313.pyc63780644editdlrm
cms_check.cpython-313.pyc140790644editdlrm
cms_counter.cpython-313.pyc329480644editdlrm
cpanel_postgres_manager.cpython-313.pyc407620644editdlrm
docroot.cpython-313.pyc54920644editdlrm
envinfo.cpython-313.pyc81840644editdlrm
exclude_rbl.cpython-313.pyc66820644editdlrm
first_setup.cpython-313.pyc204930644editdlrm
fixwpcron.cpython-313.pyc72230644editdlrm
innodb_converter.cpython-313.pyc143470644editdlrm
mail_sources.cpython-313.pyc99690644editdlrm
modsec_disable.cpython-313.pyc158380644editdlrm
mysql_selector.cpython-313.pyc867480644editdlrm
show-conns-adv.cpython-313.pyc684140644editdlrm
sparta.cpython-313.pyc4909030644editdlrm
vhost_data.cpython-313.pyc69830644editdlrm
Edit: /opt/dedrads/__pycache__/envinfo.cpython-313.pyc (8184B)
}jSrSSKrSSKrSSKrSSKJr SrSrSrSr S\S .r "S S \ 5r SS jr S rSr\S:Xa\"5 gg)z+Gather information about system environmentN)ArgumentParserzDaniel Kzdanielk@inmotionhosting.comz0.1.1z 2016-09-22 uninitiated)statusversionc,^\rSrSrSrU4SjrSrU=r$) EnvInfoErrorzCustom error class for module.c$>[TU]U5 g)z#Init with call to base constructor.N)super__init__)selfmessage __class__s /opt/dedrads/envinfo.pyr EnvInfoError.__init__s !)__name__ __module__ __qualname____firstlineno____doc__r __static_attributes__ __classcell__)rs@rrrs(""rrcUb)U[:a[SRU[55eUb)U[:a[SRU[55e[RR S5(a S[ S'O S[ S'[RRS5(a2S[ S 'S [ S 'S [ S '[ SS:Xa S[ S'OU[RRS5(a1S[ S 'S[ S 'S [ S '[ SS:Xa S[ S'/n[ SS:Xa[R"S5nO[RRS5(a[RRS5(ar[SSS9nUHVn[URS5S5nSUs=::aS:dM/O M3URURS5S5 MX SSS5 O O [S5eU[ S'S[ S '[ $![an[S5UeSnAff=f!,(df  ND=f)!a2 Main function for module, used to acquire environment information. min_version - If set, require envinfo.py to have a version greater than min_version max_version - If set, require envinfo.py to have a version less than max_version Returns dictionary of environment information. Currently, the only guaranteed entries are 'type', 'platform', and 'users'. The following are the keys that which may be present: type - General type of environment. Can be 'cpanel' or 'unknown' platform - Operating system information web_server - Type of webserver. Currently only 'apache' users - List of users. Apache related keys: easyapache - Version of EasyApache if present apache_conf - Location of httpd.conf for Apache apache_domlogs - Location of Apache domlogs On error will throw EnvInfoError. Nz5Minimum version {} is greater than current version {}z2Maximum version {} is less than current version {}z /var/cpanelcpaneltypeunknownz/etc/apache2/conf/httpd.conf apache_confz/var/log/apache2/domlogsapache_domlogsapache web_server4 easyapachez!/usr/local/apache/conf/httpd.confz/usr/local/apache/domlogs3z/var/cpanel/users/z /etc/passwdzutf-8)encoding:ii}rzCould not read from /etc/passwdz)Unable to make user list for server type.users initiatedr) __version__rformatospathisdirDATAisfilelistdirexistsopenintsplitappendOSError) min_version max_version user_list file_handlelineuides rget_datar@s8;#< C J J[   ;#< @ G G[    ww}}]##V  V  ww~~455<]!; %\ <8 #!$D  ; < <A]!< %\ <8 #!$D I F|xJJ34  & & 77>>- ( (mg6+Q +!$**S/!"45#---%,,TZZ_Q-?@!,76 )FGGDM DN KQ&'HIqPQ 76s03I5-H?&+H?? I III I+c [[S9nURS5nUR5nUR SSSSSSS 9 UR S S SSS S S 9 UR SSSSSS 9 UR SSSSS9 UR SSSSSS9 UR 5nUR (a;[S[35 [S[S35 [R"S5 URUR4$)z Parse command line arguments ) descriptionzOutput optionsz-ez --environment store_const output_typeenvzAPrint general system environment information.This is the defualt.)actiondestconsthelpz-uz--usersr)z4Print list of users rather than general environment.z --apache-confrz&Print location of Apache's httpd.conf.z-jz--json store_truezPrint results in JSON)rFrIz-vz-Vz --versionz#Print version information and exit.z%Environment Information tool version zLast modified on .r)rradd_argument_groupadd_mutually_exclusive_group add_argument parse_argsrprintr+__date__sysexitrDjson)parser output_groupoutput_type_groupargss rrOrOrs<  0F,,-=>L$AAC""   ## ""   C #""  5 # h|2I    2     D || 5k]CD !(1-.    dii ((rc [5up[5nUS:XaHWSnU(a![[R "USSSS95 g[SR U55 gUS :XaJS W;a5[RRS 5 [R"S 5 [US 5 gU(a![[R "WSSSS95 g[5 [S 5 [5 [S RWS55 [SRSR US555 [SRUS55 [SRUS 55 [SRUS55 [5 [S5 [SR US55 [5 g![a!n[S5 [U5 SnAGNSnAff=f)z4Function to be called when run from the command linezError:Nr)T),z: ) sort_keysindent separators rzNo Apache configuration found zServer EnvironmentzServer Type: {}rzOS: {} platformzWeb Server: {}r"zApache configuration: {}zApache domain logs: {}r zUsers:) rOr@rrPrTdumpsjoinrRstderrwriterSr,)rDuse_jsondataerrorr)s rmainrjs)l[z gW    T!   $))E" #  %  $ JJ  > ? HHSM d=!"   D{  G & ' G .55d6lC D ,33CHHT*=M4NO  .55d<6HI J .55d=6IJ K .55d;K6LM N G (O #((4=) * GY  h e s G H$HH__main__)NN)rr-rRrTargparser__maintainer__ __email__r+rQr0 Exceptionrr@rOrjrrrrrpsg1 # )   K8"9"Tn;)|3l zFr