One Hat Cyber Team
Your IP :
52.15.44.82
Server IP :
104.21.80.1
Server :
Linux agrigation-prod 5.15.0-67-generic #74-Ubuntu SMP Wed Feb 22 14:14:39 UTC 2023 x86_64
Server Software :
nginx/1.24.0
PHP Version :
7.4.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
lib
/
ubuntu-advantage
/
View File Name :
esm_cache.py
#!/usr/bin/env python3 import logging from uaclient.apt import update_esm_caches from uaclient.config import UAConfig from uaclient.daemon import setup_logging LOG = logging.getLogger("pro") def main(cfg: UAConfig) -> None: try: update_esm_caches(cfg) except Exception as e: msg = getattr(e, "msg", str(e)) LOG.error("Error updating the cache: %s", msg) if __name__ == "__main__": cfg = UAConfig(root_mode=True) setup_logging( logging.INFO, logging.DEBUG, log_file=cfg.log_file, logger=logging.getLogger(), ) main(cfg)