
    x[h
              
           % S r SSKrSSKJrJr  SSKJr  SSKJr  SSK	J
r
  SSKJr  SSKJr  \R                  " \5      rS	S
S/\/ S.r\
\S'   S\S\S\S\SS4
S jrg)z=Byobu: Enable/disable byobu system wide and for default user.    N)subputil)Cloud)Config)
MetaSchema)ug_util)PER_INSTANCEcc_byobuubuntudebian)iddistros	frequencyactivate_by_schema_keysmetanamecfgcloudargsreturnc                    U(       a  US   nO[         R                  " USS5      nU(       d  [        R                  SU 5        g [        R
                  " S5      (       d  UR                  R                  S/5        US:X  d  US:X  a  SU-  nS	nXE;  a  [        R                  S
U5        UR                  S5      nUR                  S5      nUR                  S5      (       a  SnSn	SnOUS:X  a  SnSnSnSn	Sn
U(       aj  [        R                  " XR                  5      u  p[        R                  " U5      u  pU(       d  [        R                  SU5        OU
SU< SU< 3-  n
U
S-  n
U(       a  U
SU	-  -  n
U
S-  n
U
S-  n
[        U
5      (       a<  SSS< SU
< SS< 3/n[        R                  SU5        [        R                  " US S!9  g g )"Nr   byobu_by_default z1Skipping module named %s, no 'byobu' values foundbyobuusersystemz	enable-%s)zenable-userzenable-systemenablezdisable-userzdisable-systemdisablez%Unknown value %s for byobu_by_defaultz-userz-systemr   installz*byobu byobu/launch-by-default boolean trueTr   	uninstallz+byobu byobu/launch-by-default boolean falsezFNo default byobu user provided, can not launch %s for the default userz sudo -Hu "z" byobu-launcher-z || X=$(($X+1)); z"echo "%s" | debconf-set-selectionsz4 && dpkg-reconfigure byobu --frontend=noninteractivez/bin/shz-czX=0; zexit $XzSetting byobu to %sF)capture)r   get_cfg_option_strLOGdebugr   whichdistroinstall_packageswarningendswith
startswithr   normalize_users_groupsextract_defaultlen)r   r   r   r   valuevalidmod_usermod_sysbl_instdc_valshcmdusers_groupsr   _user_configcmds                   ;/usr/lib/python3/dist-packages/cloudinit/config/cc_byobu.pyhandler;      s   Q''-?D		EtL::g%%wi0%8+e#E ;UC~~g&HnnY'G!!=IHG>E"99#||L&66u=KK9 4IIE((E5>>GG$$
5zz$feY GH		'/		#u%     )__doc__logging	cloudinitr   r   cloudinit.cloudr   cloudinit.configr   cloudinit.config.schemar   cloudinit.distrosr   cloudinit.settingsr	   	getLogger__name__r$   r   __annotations__strlistr;    r<   r:   <module>rK      sy    D    ! # . % +! (#!	j =& =&6 =&% =&t =& =&r<   