HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //lib/python3/dist-packages/cloudinit/config/__pycache__/cc_byobu.cpython-38.pyc
U

Ӈg�
�@s�UdZddlZddlmZmZddlmZddlmZddl	m
Z
ddlmZddl
mZe�e�Zd	d
dgegd�Ze
ed
<eeeedd�dd�ZdS)z=Byobu: Enable/disable byobu system wide and for default user.�N)�subp�util)�Cloud)�Config)�
MetaSchema)�ug_util)�PER_INSTANCEZcc_byobuZubuntuZdebian)�idZdistrosZ	frequencyZactivate_by_schema_keys�meta)�name�cfg�cloud�args�returncCsxt|�dkr|d}nt�|dd�}|s8t�d|�dSt�d�sP|j�dg�|dks`|dkrhd|}d	}||kr�t�	d
|�|�
d�}|�
d�}|�d
�r�d}d}	d}n|dkr�d}d}d}d}	d}
|�rt�
||j�\}}t�|�\}
}|
�st�	d|�n|
d|
|f7}
|
d7}
|�r<|
d|	7}
|
d7}
|
d7}
t|
��rtdddd|
dfg}t�d|�tj|dd �dS)!NrZbyobu_by_default�z1Skipping module named %s, no 'byobu' values foundZbyobu�user�systemz	enable-%s)zenable-userz
enable-system�enablezdisable-userzdisable-system�disablez%Unknown value %s for byobu_by_defaultz-userz-systemr�installz*byobu byobu/launch-by-default boolean trueTrZ	uninstallz+byobu byobu/launch-by-default boolean falsezFNo default byobu user provided, can not launch %s for the default userz  sudo -Hu "%s" byobu-launcher-%sz || X=$(($X+1)); z"echo "%s" | debconf-set-selectionsz4 && dpkg-reconfigure byobu --frontend=noninteractivez/bin/shz-cz%s %s %szX=0;zexit $XzSetting byobu to %sF)Zcapture)�lenrZget_cfg_option_str�LOG�debugrZwhichZdistroZinstall_packagesZwarning�endswith�
startswithrZnormalize_users_groupsZextract_default)rrr
r�valueZvalidZmod_userZmod_sysZbl_instZdc_valZshcmdZusersZ_groupsrZ_user_config�cmd�r�;/usr/lib/python3/dist-packages/cloudinit/config/cc_byobu.py�handlesV




�
r)�__doc__ZloggingZ	cloudinitrrZcloudinit.cloudrZcloudinit.configrZcloudinit.config.schemarZcloudinit.distrosrZcloudinit.settingsrZ	getLogger�__name__rr
�__annotations__�str�listrrrrr�<module>	s
�