|
Server : Apache System : Linux cvar2.toservers.com 3.10.0-962.3.2.lve1.5.73.el7.x86_64 #1 SMP Wed Aug 24 21:31:23 UTC 2022 x86_64 User : njnconst ( 1116) PHP Version : 8.4.18 Disable Function : NONE Directory : /lib/python2.7/site-packages/sos/policies/ |
Upload File : |
�
p�ebc @� s\ d d l m Z d d l m Z m Z d d l m Z d d l Z d e f d � � YZ d S( i����( t with_statement( t UbuntuPlugint DebianPlugin( t DebianPolicyNt UbuntuPolicyc B� s{ e Z d Z d Z d Z d d Z d Z d Z d Z e Z
d
d � Z e
d � � Z d � Z d
� Z d � Z d � Z RS( t Ubuntut Canonicals https://www.ubuntu.com/s9 /usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/gamess) :/usr/local/sbin:/usr/local/bin:/snap/bins, https://files.support.canonical.com/uploads/t ubuntuc C� s, t t | � j d | � t t g | _ d S( Nt sysroot( t superR t __init__R R t valid_subclasses( t selfR ( ( s7 /usr/lib/python2.7/site-packages/sos/policies/ubuntu.pyR
s c C� sE y, t d d � � } d | j � k SWd QXWn t k
r@ t SXd S( s[ This method checks to see if we are running on Ubuntu.
It returns True or False.s /etc/lsb-releaset rR N( t opent readt IOErrort False( t clst fp( ( s7 /usr/lib/python2.7/site-packages/sos/policies/ubuntu.pyt check s
c C� sy y` t d d � �G } | j � } x1 | D]) } d | k r( | j d � d j � Sq( WWd QXt SWn t k
rt t SXd S( s7 Returns the version stated in DISTRIB_RELEASE
s /etc/lsb-releaseR
t DISTRIB_RELEASEt =i N( R t readlinest splitt stripR R ( R R t linest line( ( s7 /usr/lib/python2.7/site-packages/sos/policies/ubuntu.pyt dist_version"