usmannasir
2024-01-29 13:19:20 +05:00
parent ed4cfb1629
commit 874cdfdc56
2 changed files with 6 additions and 8 deletions

View File

@@ -294,9 +294,11 @@ Suites: jammy
Components: main main/debug
Signed-By: /etc/apt/keyrings/mariadb-keyring.pgp
"""
WriteToFile = open(RepoPath, 'w')
WriteToFile.write(RepoContent)
WriteToFile.close()
if get_Ubuntu_release() > 21.00:
WriteToFile = open(RepoPath, 'w')
WriteToFile.write(RepoContent)
WriteToFile.close()
command = 'DEBIAN_FRONTEND=noninteractive apt-get update -y'
install.preFlightsChecks.call(command, self.distro, command, command, 1, 1, os.EX_OSERR, True)

View File

@@ -36,8 +36,4 @@
# if result:
# print(f"Reverse DNS lookup for {ip_address_to_check}: {result}")
# else:
# print(f"Reverse DNS lookup failed for {ip_address_to_check}")
value = '/home//hey.txt'
print(value[6:])
# print(f"Reverse DNS lookup failed for {ip_address_to_check}")