HOME


Mini Shell 1.0
Redirecting to https://devs.lapieza.net/iniciar-sesion Redirecting to https://devs.lapieza.net/iniciar-sesion.
DIR: /lib/python3/dist-packages/cloudinit/config/__pycache__/
Upload File :
Current File : //lib/python3/dist-packages/cloudinit/config/__pycache__/cc_byobu.cpython-311.pyc
�

܍~c�����UdZddlmZddlmZmZddlmZddlm	Z	ddl
mZmZddl
mZddlmZd	Zd
dgZdd
deeeddggd�Zeed<ee��Zdede	dedededdfd�ZdS)z=Byobu: Enable/disable byobu system wide and for default user.�)�Logger)�subp�util)�Cloud)�Config)�
MetaSchema�get_meta_doc)�ug_util)�PER_INSTANCEa�This module controls whether byobu is enabled or disabled system wide and for
the default system user. If byobu is to be enabled, this module will ensure it
is installed. Likewise, if it is to be disabled, it will be removed if
installed.

Valid configuration options for this module are:

  - ``enable-system``: enable byobu system wide
  - ``enable-user``: enable byobu for the default user
  - ``disable-system``: disable byobu system wide
  - ``disable-user``: disable byobu for the default user
  - ``enable``: enable byobu both system wide and for default user
  - ``disable``: disable byobu for all users
  - ``user``: alias for ``enable-user``
  - ``system``: alias for ``enable-system``
�ubuntu�debian�cc_byobu�Byobuz5Enable/disable byobu system wide and for default userzbyobu_by_default: enable-userz byobu_by_default: disable-system)�id�name�title�description�distros�	frequency�examples�activate_by_schema_keys�metar�cfg�cloud�log�args�returnNc��t|��dkr	|d}ntj|dd��}|s|�d|��dS|dks|dkrd|z}d}||vr|�d	|��|�d
��}|�d��}|�d��rd
}	d}
d}n|dkrd}d}d}	d}
d}|r]tj||j	��\}}
tj
|��\}}|s|�d|	��n|d|�d|	��z
}|dz
}|r|d|
zz
}|dz
}|dz
}t|��r;ddd�d|�dd��g}|�d|��tj|d� ��dSdS)!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�debug�warning�endswith�
startswithr
�normalize_users_groups�distro�extract_defaultr)rrrrr�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>8s ���4�y�y�A�~�~��Q�����'��-?��D�D�����	�	�E�t�L�L�L�������%�8�+�+��e�#��
�E�
�E������;�U�C�C�C��~�~�g�&�&�H��n�n�Y�'�'�G�����!�!�	?���=������I����H��G���>���E��)�"�9�#�u�|�L�L����&�6�u�=�=���|��	)��K�K�9��
�
�
�
�
�E�4�4�4���I�I�E��(�(�E��%�
�5��>�>��
�G�G��
�$�$��
�5�z�z�&��$�f�f�f�e�e�e�Y�Y� G�H���	�	�'��/�/�/��	�#�u�%�%�%�%�%�%�&�&�)�__doc__�loggingr�	cloudinitrr�cloudinit.cloudr�cloudinit.configr�cloudinit.config.schemarr	�cloudinit.distrosr
�cloudinit.settingsr�MODULE_DESCRIPTIONrr�__annotations__�str�listr>�r?r=�<module>rMsO��D�C�C������� � � � � � � � �!�!�!�!�!�!�#�#�#�#�#�#�<�<�<�<�<�<�<�<�%�%�%�%�%�%�+�+�+�+�+�+���"�X�
����
D�%���'�*�� "����j�����,�t�
�
��<&�

�<&��<&�#(�<&�/5�<&�=A�<&�	�<&�<&�<&�<&�<&�<&r?