__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
�

x[hn���SSKrSSKJrJrJrJrJr SSKJr SSKJ	r
 SSKJrJ
r
 \R"\5r"SS\R"5rg)�N)�distros�helpers�net�subp�util)�PackageList)�	rhel_util)�
PER_ALWAYS�PER_INSTANCEc��\rSrSrSrSrSrSrS\\S.0rSr	S	r
SS
jrSrSS
jr
S\4SjrSrSrSSjrSrSrSSjrSS.SjrSrg)�Distro�z
/etc/hostnamez/etc/systemd/network/z/etc/locale.confz/etc/systemd/resolved.conf�networkd)�resolv_conf_fn�network_conf_dirTc��[RRXX#5 [R"U5UlSUlS/Ulg)N�photon�	systemctl)rr
�__init__r�Runners�_runner�osfamily�init_cmd)�self�name�cfg�pathss    �:/usr/lib/python3/dist-packages/cloudinit/distros/photon.pyr�Distro.__init__s8��������C�7����u�-��� ��
�$�
��
�c��[RSU5 [R"XS9up4U(a[RSX5 SX44$SX44$![Ra [
R"[SU5 gf=f)NzAttempting to run: %s)�capturez(Running %s resulted in stderr output: %sTFzCommand %s failed)TNN)�LOG�debugr�warning�ProcessExecutionErrorr�logexc)r�cmdr"�out�errs     r�exec_cmd�Distro.exec_cmd(sy���	�	�)�3�/�
	$����3�8�J�S�����>����S�~�%��#�?�"���)�)�	$��K�K��0�#�6�#�	$�s�6A�A�0B�Bc���SnURRUS5n[RSX5 U(d[R
"5$[R
S5 g)N�disable_fallback_netcfgTz%s value is: %szJSkipping generate_fallback_config. Rely on PhotonOS default network config)�_cfg�getr#r$r�generate_fallback_config�info)r�keyr.s   rr1�Distro.generate_fallback_config6sS��'��"&�)�)�-�-��T�":���	�	�#�S�B�&��/�/�1�1����
�	
�r Nc��U(dURnSU0n[R"X#5 /SQnURU5 g)N�LANG)r�restartzsystemd-localed)�systemd_locale_conf_fn�rhutil�update_sysconfig_filer+)r�locale�out_fn�
locale_cfgr(s     r�apply_locale�Distro.apply_localeDsC����0�0�F�
�F�
�
�	�$�$�V�8�
:���
�
�c�r �pkglistc�$�URSUS9 g)N�install)�pkgs)�package_command)rr@s  r�install_packages�Distro.install_packagesVs�����Y�W��5r c��U(a-URS5(a[R"X!5 gSn[R"URSS5nU(a!URSS[
U5/5up5nO6URSSS[
U5/5up5n[RS5 U(a[RSUU45 gg)	N�/previous-hostname�create_hostname_fileT�hostnamectlzset-hostnamez--transientz7create_hostname_file is False; hostname set transientlyz3Error while setting hostname: %s
Given hostname: %s)
�endswithr�
write_file�get_cfg_option_boolr/r+�strr#r2r%)r�hostname�filename�retrI�_outr*s       r�_write_hostname�Distro._write_hostnameZs�����)�)�*>�?�?��O�O�H�/��C�#'�#;�#;��	�	�1�4�$� �$�!%���"�N�C��M�B�"���3�"&���%�&�%��H�
�	�"���3����M������N�� ���r c�T�URUR5nURU4$�N)�_read_hostname�systemd_hostname_conf_fn)r�sys_hostnames  r�_read_system_hostname�Distro._read_system_hostname{s)���*�*�4�+H�+H�I���-�-�|�<�<r c���U(a:URS5(a$[R"U5R5$UR	SS/5up4nU(aUR5$U$)NrHrOz-f)rKr�load_text_file�stripr+)rrP�default�_retr)�_errs      rrW�Distro._read_hostnamesZ����)�)�*>�?�?��&�&�x�0�6�6�8�8��-�-��T�(:�;���4�!�s�y�y�{�.�w�.r c��g)Nz	127.0.1.1�)rs r�_get_localhost_ip�Distro._get_localhost_ip�s��r c�J�[R"XRU5S9 g)N)�tz�tz_file)r�set_etc_timezone�
_find_tz_file)rrhs  r�set_timezone�Distro.set_timezone�s��� � �B�0B�0B�2�0F�Gr c��U(d/nSS/nU(a'[U[5(aURU5 O-U(a&[U[5(aUR	U5 URU5 [
R"SU5nUR	U5 URU5upgnU(a[RSU5 gg)N�tdnfz-yz%s-%sz#Error while installing packages: %s)
�
isinstancerN�append�list�extendr�expand_package_listr+r#�error)	r�command�argsrCr(r@rQrRr*s	         rrD�Distro.package_command�s�����D��t�n���J�t�S�)�)��J�J�t��
�j��t�,�,��J�J�t���
�
�7���*�*�7�D�9���
�
�7�����s�+���3���I�I�;�S�A�r F)�forcec�t�URRSURS/U(a[O[S9 g)Nzupdate-sources�	makecache)�freq)r�runrDr
r)rrys  r�update_package_sources�Distro.update_package_sources�s1��������� � �
�M�$��,�		�	
r )rrr)TrV)NN)�__name__�
__module__�__qualname__�__firstlineno__rXrr8�resolve_conf_fn�renderer_configs�prefer_fqdnrr+r1r>rrErSrZrWrerlrDr~�__static_attributes__rdr rr
r
s���.��.��/��2�O�	�-� 0�
����K�&�$���$6��6��B=�/��H�B�&/4�
�
r r
)�logging�	cloudinitrrrrr�cloudinit.distrosrr	r9�cloudinit.settingsr
r�	getLoggerr�r#r
rdr r�<module>r�s;��
�7�7�)�1�7�
����!��V
�W�^�^�V
r 

Filemanager

Name Type Size Permission Actions
OpenCloudOS.cpython-313.pyc File 771 B 0644
TencentOS.cpython-313.pyc File 769 B 0644
__init__.cpython-313.pyc File 67.79 KB 0644
almalinux.cpython-313.pyc File 466 B 0644
alpine.cpython-313.pyc File 23.96 KB 0644
amazon.cpython-313.pyc File 753 B 0644
aosc.cpython-313.pyc File 6.55 KB 0644
arch.cpython-313.pyc File 6.42 KB 0644
azurelinux.cpython-313.pyc File 2.99 KB 0644
bsd.cpython-313.pyc File 9.11 KB 0644
bsd_utils.cpython-313.pyc File 1.91 KB 0644
centos.cpython-313.pyc File 463 B 0644
cloudlinux.cpython-313.pyc File 467 B 0644
cos.cpython-313.pyc File 462 B 0644
debian.cpython-313.pyc File 11.51 KB 0644
dragonflybsd.cpython-313.pyc File 566 B 0644
eurolinux.cpython-313.pyc File 466 B 0644
fedora.cpython-313.pyc File 463 B 0644
freebsd.cpython-313.pyc File 10.38 KB 0644
gentoo.cpython-313.pyc File 5.91 KB 0644
mariner.cpython-313.pyc File 2.01 KB 0644
miraclelinux.cpython-313.pyc File 469 B 0644
netbsd.cpython-313.pyc File 7.05 KB 0644
networking.cpython-313.pyc File 16.54 KB 0644
openbsd.cpython-313.pyc File 3.25 KB 0644
openeuler.cpython-313.pyc File 767 B 0644
openmandriva.cpython-313.pyc File 471 B 0644
opensuse-leap.cpython-313.pyc File 474 B 0644
opensuse-microos.cpython-313.pyc File 477 B 0644
opensuse-tumbleweed.cpython-313.pyc File 480 B 0644
opensuse.cpython-313.pyc File 10.61 KB 0644
photon.cpython-313.pyc File 6.95 KB 0644
rhel.cpython-313.pyc File 8.36 KB 0644
rhel_util.cpython-313.pyc File 1.57 KB 0644
rocky.cpython-313.pyc File 462 B 0644
sle-micro.cpython-313.pyc File 470 B 0644
sle_hpc.cpython-313.pyc File 468 B 0644
sles.cpython-313.pyc File 465 B 0644
suse.cpython-313.pyc File 463 B 0644
ubuntu.cpython-313.pyc File 3.22 KB 0644
ug_util.cpython-313.pyc File 7.93 KB 0644
virtuozzo.cpython-313.pyc File 466 B 0644
Filemanager