403Webshell
Server IP : 23.254.227.96  /  Your IP : 216.73.216.7
Web Server : Apache/2.4.62 (Unix) OpenSSL/1.1.1k
System : Linux hwsrv-1277026.hostwindsdns.com 4.18.0-477.13.1.el8_8.x86_64 #1 SMP Tue May 30 14:53:41 EDT 2023 x86_64
User : viralblo ( 1001)
PHP Version : 8.1.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/python3.6/site-packages/cloudinit/config/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3.6/site-packages/cloudinit/config/__pycache__/cc_byobu.cpython-36.opt-1.pyc
3

��b�
�@szUdZddlmZmZddlmZmZddlmZddl	m
Z
dZddgZd	d
deee
dd
gd�Z
e
ee
�Zdd�ZdS)z=Byobu: Enable/disable byobu system wide and for default user.�)�subp�util)�
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``
ZubuntuZdebianZcc_byobuZByobuz5Enable/disable byobu system wide and for default userzbyobu_by_default: enable-userz byobu_by_default: disable-system)�id�name�title�description�distrosZ	frequencyZexamplescCs^t|�dkr|d}ntj|dd�}|s8|jd|�dS|dksH|dkrPd|}d#}||krh|jd|�|jd�}|jd�}|jd
�r�d}	d}
d}n|d
kr�d}d}d}	d}
d}|�rtj||j	�\}}
tj
|�\}}|s�|jd|	�n|d||	f7}|d7}|�r"|d|
7}|d7}|d7}t|��rZdddd|dfg}|jd |�tj|d!d"�dS)$NrZbyobu_by_default�z1Skipping module named %s, no 'byobu' values found�user�systemz	enable-%s�enable-user�
enable-system�enable�disable-user�disable-system�disablez%Unknown value %s for byobu_by_defaultz-userz-systemZinstallz*byobu byobu/launch-by-default boolean trueTZ	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)rrrrrr)�lenrZget_cfg_option_str�debugZwarning�endswith�
startswithrZnormalize_users_groupsZdistroZextract_defaultr)r	ZcfgZcloud�log�args�valueZvalidZmod_userZmod_sysZbl_instZdc_valZshcmdZusersZ_groupsrZ_user_config�cmd�r�/usr/lib/python3.6/cc_byobu.py�handle3sZ




r N)�__doc__Z	cloudinitrrZcloudinit.config.schemarrZcloudinit.distrosrZcloudinit.settingsrZMODULE_DESCRIPTIONr�metar rrrr�<module>	s 

Youez - 2016 - github.com/yon3zu
LinuXploit