/opt/cloudlinux/venv/lib/python3.11/site-packages/clwizard/modules/__pycache__
NameSizeModeActions
base.cpython-311.opt-1.pyc115480644editdlrm
base.cpython-311.pyc115480644editdlrm
cagefs.cpython-311.opt-1.pyc68810644editdlrm
cagefs.cpython-311.pyc68810644editdlrm
governor.cpython-311.opt-1.pyc83510644editdlrm
governor.cpython-311.pyc83510644editdlrm
lsapi.cpython-311.opt-1.pyc115360644editdlrm
lsapi.cpython-311.pyc115360644editdlrm
nodejs.cpython-311.opt-1.pyc77360644editdlrm
nodejs.cpython-311.pyc77360644editdlrm
php.cpython-311.opt-1.pyc90350644editdlrm
php.cpython-311.pyc90350644editdlrm
python.cpython-311.opt-1.pyc74590644editdlrm
python.cpython-311.pyc74590644editdlrm
ruby.cpython-311.opt-1.pyc56260644editdlrm
ruby.cpython-311.pyc56260644editdlrm
__init__.cpython-311.opt-1.pyc73460644editdlrm
__init__.cpython-311.pyc73460644editdlrm
Edit: /opt/cloudlinux/venv/lib/python3.11/site-packages/clwizard/modules/__pycache__/base.cpython-311.pyc (11548B)
§ 1÷‘³¹…ãó¬—ddlZddlZddlmZddlmZmZmZddlm Z ddl m Z ddl m Z mZmZmZmZmZmZmZddlmZddlmZmZGd „d ¦«ZdS) éN)Úabstractmethod)ÚDictÚListÚOptional)Úcpapi)ÚGroupInfoReader)ÚExternalProgramFailedÚget_cl_versionÚget_package_db_errorsÚget_passenger_package_nameÚis_ea4Úis_package_installedÚ is_ubuntuÚ run_command)ÚInstallationFailedException)Úconvert_package_versionÚ setup_loggercóΗeZdZdZdZdZdZdZd„Zdd„Z d„Z d „Z d „Z d „Z d „Zd „Zd„Zd„Zed„¦«Zed„¦«Zed„¦«Zed„¦«Zed„¦«ZdS)ÚWizardInstallerz2 General interface for modules installers ÚNz'/etc/pki/rpm-gpg/RPM-GPG-KEY-CloudLinux)z public keyz not signedzkey is not trustedÚnokeyzgpg check failedcóT—td|jjz|j¦«|_dS)Nzwizard.)rÚ __class__Ú__name__ÚLOG_FILEÚ app_logger©Úselfs úpy/clwizard/modules/base.pyÚ__init__zWizardInstaller.__init__;s#€Ý& y°4´>Ô3JÑ'JÈDÌMÑZÔZˆŒˆˆócó—|j d¦«|j dd |¦«¦« t||¬¦«}nT#t$rG}|j d¦«|j t |¦«¦«‚d}~wwxYw|j d¦«|j |¦«|j d¦«|S) z!Run external tool and log resultsz<~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~zExecuting command %s...ú )Úenv_datazP...external command failed, see the following lines for tracebacks, errors, etc.Nz3...external command successfully ended with output:z<------------------------------------------------------------)rÚinfoÚjoinrr ÚerrorÚstr)rÚcmdÚcmd_envÚoutputÚerrs rÚ _run_commandzWizardInstaller._run_command>sõ€ð Œ×Ò˜XÑ&Ô&Ð&Ø Œ×ÒÐ6¸¿ºÀ¹ ¼ ÑFÔFÐFð Ý  ¨wÐ7Ñ7Ô7ˆFˆFøÝ$ð ð ð Ø ŒO× Ò Ð!sÑ tÔ tÐ tØ ŒO× !Ò !¥# c¡(¤(Ñ +Ô +Ð +Ø øøøøð øøøð Œ×ÒÐRÑSÔSÐSØ Œ×Ò˜VÑ$Ô$Ð$Ø Œ×Ò˜XÑ&Ô&Ð&؈ sÁ AÁ B-Á&AB(Â(B-có —t¦«}|r0d|›d|›�}|j |¦«t¦«‚t |¦«S)z!Check if package exists on serverzCan't check package z presence. Errors: )r rr'rr)rÚ package_nameÚ error_messageÚ log_messages rÚ_is_package_installedz%WizardInstaller._is_package_installedNs]€õ.Ñ/Ô/ˆ Ø ð 0àb°ÐbÐbÐS`ÐbÐbˆKØ ŒO× !Ò ! +Ñ .Ô .Ð .Ý-Ñ/Ô/Ð /Ý# LÑ1Ô1Ð1r!cóF—t¦«r |j|ŽS|j|ŽS)z!Install a package and log results)rÚ_install_apt_packageÚ_install_yum_package)rÚpackagess rÚ_install_packagez WizardInstaller._install_packageYs0€õ ‰;Œ;ð 8Ø,�4Ô,¨hÐ7Ð 7Ø(ˆtÔ(¨(Ð3Ð3r!cót—i}d|d<d|d<|r)| gd¢t|¦«z|¬¦«SdS)z&Install an apt package and log resultsÚnoninteractiveÚDEBIAN_FRONTENDÚtrueÚDEBCONF_NONINTERACTIVE_SEEN)zapt-getÚinstallú-y)r*N©r-Úlist)rr6Úapt_envs rr4z$WizardInstaller._install_apt_package`sY€ðˆà%5ˆÐ!Ñ"Ø17ˆÐ-Ñ.à ð eØ×$Ò$Ð%AÐ%AÐ%AÅDÈÁNÄNÑ%RÐ\cÐ$ÑdÔdÐ d؈tr!có*‡—|r� | gd¢t|¦«z¦«S#t$rZŠtˆfd„|jD¦«¦«r4|j dd |¦«|j¦«‚dŠ‹wwxYwdS)z%Install a yum package and log results)Úyumr=r>z--setopt=localpkg_gpgcheck=1c3ó^•K—|]'}|t‰¦« ¦«vV—Œ(dS©N)r(Úlower)Ú.0Úmarkerr,s €rú z7WizardInstaller._install_yum_package..zs8øèè€ÐZÐZ°f�v¥ S¡¤§¢Ñ!1Ô!1Ð1ÐZÐZÐZÐZÐZÐZr!zòSignature verification failed for %s, so nothing was installed. If this host's keyring predates the key CloudLinux signed the package with, update the cloudlinux-release package and import the keys it ships with 'rpm --import %s', then retry.z, N) r-r@r ÚanyÚ_GPG_FAILURE_MARKERSrr'r&Ú_CL_RPM_GPG_KEY)rr6r,s @rr5z$WizardInstaller._install_yum_packagemsÇø€ð ð ð Ø×(Ò(Ð)aÐ)aÐ)aÕdhÐiqÑdrÔdrÑ)rÑsÔsÐsøÝ(ð ð ð õÐZÐZÐZÐZÀÔ@YÐZÑZÔZÑZÔZðØ”O×)Ò)ð9🠚  (Ñ+Ô+ØÔ,ñ ôððøøøøð øøøðˆts…&,¬ B¶AB  Bcó^—t¦«rd„|D¦«}|j|ŽS|j|ŽS)zë Install a package group. On Ubuntu, this will install the meta packages. Currently, we only support PHP Selector on Ubuntu. If other selectors are added, they will need to have a meta packages. có—g|]}|dz‘ŒS)z-meta©)rGÚgroups rú z3WizardInstaller._install_groups..�s€Ð:Ð:Ð:¨%�e˜g‘oÐ:Ð:Ð:r!)rr4Ú_install_yum_groups©rÚgroupss rÚ_install_groupszWizardInstaller._install_groups†sC€õ ‰;Œ;ð 6Ø:Ð:°6Ð:Ñ:Ô:ˆFØ,�4Ô,¨fÐ5Ð 5Ø'ˆtÔ'¨Ð0Ð0r!cóX—|r'| gd¢t|¦«z¦«SdS)z.Install package group with yum and log results)rCÚ groupinstallr>Nr?rSs rrRz#WizardInstaller._install_yum_groups“s8€ð ð SØ×$Ò$Ð%BÐ%BÐ%BÅTÈ&Á\Ä\Ñ%QÑRÔRÐ R؈tr!cóŒ—d}tj |¦«rdSt¦«pd}d|vrt d¦«‚t jd|¦«}|st d¦«‚t| ¦«¦«}d|›d �}|j   d |¦«|  |¦«dS) z› Check whether cloudlinux-ea4.repo is present and install it if not. It's required only on EA4 to install proper Passenger package z$/etc/yum.repos.d/cloudlinux-ea4.repoNÚUnknownÚubuntuz0Functionality currently not supported for Ubuntuz\d+z.Failed to get the distribution's major versionzIhttps://repo.cloudlinux.com/cloudlinux/EA4/cloudlinux-ea4-release-latest-z .noarch.rpmzFUnable to find cloudlinux-ea4 repo. Trying to install it using url: %s) ÚosÚpathÚexistsr rÚreÚsearchÚintrPrr%r5)rÚcl_ea4_repofileÚdistÚ maj_ver_matchÚ dist_maj_verÚ package_urls rÚ_ensure_cl_ea4_repo_existsz*WizardInstaller._ensure_cl_ea4_repo_existsšsà€ðAˆÝ Œ7�>Š>˜/Ñ *Ô *ð Ø ˆFåÑÔÐ, 9ˆØ �tÐ Ð Ý-Ð.`ÑaÔaÐ aõœ  &¨$Ñ/Ô/ˆ Øð `Ý-Ð.^Ñ_Ô_Ð _å˜=×.Ò.Ñ0Ô0Ñ1Ô1ˆ ð uÐ[gÐ tÐ tÐ tð ð Œ×ÒÐeÐgrÑsÔsÐsØ ×!Ò! +Ñ.Ô.Ð.Ð.Ð.r!cóD—t¦«rtd¦«‚t¦«r| ¦«t ¦«}|j d|¦« | |¦«dS#t$r}t¦«|‚d}~wwxYw)zb Install proper passenger package for Selectors if it's not yet installed z+Passenger currently not supported on Ubuntuz'Trying to install Passenger package: %sN) rrr rfr rr%r5r )rÚ passengerÚ extern_faileds rÚ_install_passengerz"WizardInstaller._install_passenger¼s³€õ ‰;Œ;ð ]Ý-Ð.[Ñ\Ô\Ð \Ý ‰8Œ8ð .Ø × +Ò +Ñ -Ô -Ð -å.Ñ0Ô0ˆ Ø Œ×ÒÐFÈ ÑRÔRÐRð CØ × %Ò % iÑ 0Ô 0Ð 0Ð 0Ð 0øÝ$ð Cð Cð CÝ-Ñ/Ô/°]Ð Bøøøøð CøøøsÁ*B B BÂBcóÈ—tj|¦«}g}|dkrdnd}| ¦«D],}| t |d|¬¦«¦«Œ-|S)z² Get a list of available Python, NodeJS, PHP or Ruby module versions. :param group: - group name, e.g: python :return: list of available versions ÚnodejsééÚversion)Ú version_size)rÚget_group_infoÚvaluesÚappendr)rPÚavailable_groups_infoÚversionsÚver_sizeÚ group_datas rÚ_get_available_versionsz'WizardInstaller._get_available_versionsÑsz€õ!0Ô >¸uÑ EÔ EÐØˆð  Ò)Ð)�1�1¨qˆØ/×6Ò6Ñ8Ô8ð cð cˆJØ �OŠOÕ3°J¸yÔ4IÐX`ÐaÑaÔaÑ bÔ bÐ bÐ b؈r!có—t¦«‚rE©ÚNotImplementedError)rÚoptionss rÚrun_installationz WizardInstaller.run_installationås€õ"Ñ#Ô#Ð#r!có—t¦«SrE)Úset©Úclss rÚsupported_optionsz!WizardInstaller.supported_optionsês €å‰uŒuˆ r!có—t¦«‚)z¿ Method that returns dictionary with two required keys: {installed: True|False and options: {...}] This will be used by lvemanager to properly display wizard. rzrs rÚinitial_statuszWizardInstaller.initial_statusîs€õ"Ñ#Ô#Ð#r!cóF—|j€dStj|j¦«S)z9 Checks whether we must :return: NT)Ú_REQUIRED_CL_COMPONENT_SUPPORTrÚis_panel_feature_supportedr€s rÚis_supported_by_control_panelz-WizardInstaller.is_supported_by_control_paneløs&€ð Ô -Ð 5Ø�4ÝÔ/°Ô0RÑSÔSÐSr!rE)rÚ __module__Ú __qualname__Ú__doc__rr†rLrKr r-r2r7r4r5rUrRrfrjÚ staticmethodrxrr}Ú classmethodr‚r„rˆrOr!rrrsj€€€€€ððð€Hà%)Ð"ð@€OðkÐð[ð[ð[ððððð 2ð 2ð 2ð4ð4ð4ð ð ð ðððð2 1ð 1ð 1ðððð /ð /ð /ðDCðCðCð*ððñ„\ðð&ð$ð$ñ„^ð$ðððñ„[ððð$ð$ñ„^ð$ððTðTñ„[ðTðTðTr!r)r[r^ÚabcrÚtypingrrrÚclcommonrÚclcommon.group_info_readerrÚclcommon.utilsr r r r r rrrÚclwizard.exceptionsrÚclwizard.utilsrrrrOr!rúr•sCðð € € € Ø € € € ØÐÐÐÐÐØ'Ð'Ð'Ð'Ð'Ð'Ð'Ð'Ð'Ð'àÐÐÐÐÐØ6Ð6Ð6Ð6Ð6Ð6ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð<Ð;Ð;Ð;Ð;Ð;Ø@Ð@Ð@Ð@Ð@Ð@Ð@Ð@ðbTðbTðbTðbTðbTñbTôbTðbTðbTðbTr!