403Webshell
Server IP : 46.101.140.223  /  Your IP : 216.73.217.61
Web Server : nginx/1.22.1
System : Linux debian-s-1vcpu-1gb-fra1-01 6.1.0-49-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64
User : deploy-others ( 1001)
PHP Version : 8.2.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/cloudinit/config/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/cloudinit/config/__pycache__/cc_runcmd.cpython-311.pyc
�

܍~c�����UdZddlZddlmZddlmZddlmZddlm	Z	ddl
mZddlm
Z
mZdd	lmZdd
lmZdZdd
deegeed��gdgd�Ze
ed<ee��Zdedede	dededdfd�ZdS)zERuncmd: run arbitrary commands at rc.local with output to the console�N)�Logger)�dedent)�util)�Cloud)�Config)�
MetaSchema�get_meta_doc)�ALL_DISTROS)�PER_INSTANCEaRun arbitrary commands at a rc.local like time-frame with output to the
console. Each item can be either a list or a string. The item type affects
how it is executed:


* If the item is a string, it will be interpreted by ``sh``.
* If the item is a list, the items will be executed as if passed to execve(3)
  (with the first arg as the command).

Note that the ``runcmd`` module only writes the script to be run
later. The module that actually runs the script is ``scripts-user``
in the :ref:`topics/boot:Final` boot stage.

.. note::

    all commands must be proper yaml, so you have to quote any characters
    yaml would eat (':' can be problematic)

.. note::

    when writing files, do not use /tmp dir as it races with
    systemd-tmpfiles-clean LP: #1707222. Use /run/somedir instead.
�	cc_runcmd�RuncmdzRun arbitrary commandsa        runcmd:
            - [ ls, -l, / ]
            - [ sh, -xc, "echo $(date) ': hello world!'" ]
            - [ sh, -c, echo "=========hello world'=========" ]
            - ls -l /root
            - [ wget, "http://example.org", -O, /tmp/index.html ]
    �runcmd)�id�name�title�description�distros�	frequency�examples�activate_by_schema_keys�metar�cfg�cloud�log�args�returnc��d|vr|�d|��dStj�|�d��d��}|d}	tj|��}tj||d��dS#t$r1}t|��d�
||�����d}~wwxYw)Nrz:Skipping module named %s, no 'runcmd' key in configuration�scriptsi�z"Failed to shellify {} into file {})�debug�os�path�join�	get_ipathr�shellify�
write_file�	Exception�type�format)	rrrrr�out_fn�cmd�content�es	         �</usr/lib/python3/dist-packages/cloudinit/config/cc_runcmd.py�handler.Os����s����	�	�H�$�	
�	
�	
�	��
�W�\�\�%�/�/�)�4�4�h�
?�
?�F�

�h�-�C�P��-��$�$�������/�/�/�/�/���P�P�P��d�1�g�g�:�A�A�#�v�N�N�O�O�O�����P���s�*B�
C�,B;�;C)�__doc__r �loggingr�textwrapr�	cloudinitr�cloudinit.cloudr�cloudinit.configr�cloudinit.config.schemarr	�cloudinit.distrosr
�cloudinit.settingsr�MODULE_DESCRIPTIONr�__annotations__�str�listr.��r-�<module>r>sv��L�K�K�	�	�	�	�������������������!�!�!�!�!�!�#�#�#�#�#�#�<�<�<�<�<�<�<�<�)�)�)�)�)�)�+�+�+�+�+�+���4��
%�%��}����
�		
�		
��!)�z�'���j����,�,�t�
�
��P�

�P��P�#(�P�/5�P�=A�P�	�P�P�P�P�P�Pr=

Youez - 2016 - github.com/yon3zu
LinuXploit