HEX
Server: Apache
System: Linux zacp120.webway.host 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
User: govancoz (1003)
PHP: 8.3.26
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: //lib/python3.6/site-packages/cloudinit/config/__pycache__/cc_scripts_user.cpython-36.pyc
3

\�mee�	@s�UdZddlZddlZddlmZddlmZddlmZddl	m
Z
mZddlm
Z
ddlmZd	Zd
ddee
geggd
�Ze
ee�Zeje�ZdZeeeedd�dd�ZdS)zScripts User: Run user scripts�N)�subp)�Cloud)�Config)�
MetaSchema�get_meta_doc)�ALL_DISTROS)�PER_INSTANCEa�This module runs all user scripts. User scripts are not specified in the
``scripts`` directory in the datasource, but rather are present in the
``scripts`` dir in the instance configuration. Any cloud-config parts with a
``#!`` will be treated as a script and run. Scripts specified as cloud-config
parts will be run in the order they are specified in the configuration.
This module does not accept any config keys.
Zcc_scripts_userzScripts UserzRun user scripts)�id�name�title�descriptionZdistrosZ	frequencyZexamplesZactivate_by_schema_keys�scripts)r
�cfg�cloud�args�returncCsLtjj|j�t�}ytj|�Wn&tk
rFtj	d|t|��YnXdS)Nz"Failed to run module %s (%s in %s))
�os�path�joinZ
get_ipath_cur�
SCRIPT_SUBDIRrZrunparts�	Exception�LOGZwarning)r
rrrZ
runparts_path�r�%/usr/lib/python3.6/cc_scripts_user.py�handle/sr)�__doc__ZloggingrZ	cloudinitrZcloudinit.cloudrZcloudinit.configrZcloudinit.config.schemarrZcloudinit.distrosrZcloudinit.settingsrZMODULE_DESCRIPTION�metaZ	getLogger�__name__rr�str�listrrrrr�<module>s*