mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-09 06:46:10 +01:00
fix mariadb install for ubuntu 20 ref https://community.cyberpanel.net/t/error-we-are-not-able-to-run-debian-frontend-noninteract/52030/2
This commit is contained in:
@@ -294,9 +294,11 @@ Suites: jammy
|
|||||||
Components: main main/debug
|
Components: main main/debug
|
||||||
Signed-By: /etc/apt/keyrings/mariadb-keyring.pgp
|
Signed-By: /etc/apt/keyrings/mariadb-keyring.pgp
|
||||||
"""
|
"""
|
||||||
WriteToFile = open(RepoPath, 'w')
|
|
||||||
WriteToFile.write(RepoContent)
|
if get_Ubuntu_release() > 21.00:
|
||||||
WriteToFile.close()
|
WriteToFile = open(RepoPath, 'w')
|
||||||
|
WriteToFile.write(RepoContent)
|
||||||
|
WriteToFile.close()
|
||||||
|
|
||||||
command = 'DEBIAN_FRONTEND=noninteractive apt-get update -y'
|
command = 'DEBIAN_FRONTEND=noninteractive apt-get update -y'
|
||||||
install.preFlightsChecks.call(command, self.distro, command, command, 1, 1, os.EX_OSERR, True)
|
install.preFlightsChecks.call(command, self.distro, command, command, 1, 1, os.EX_OSERR, True)
|
||||||
|
|||||||
@@ -36,8 +36,4 @@
|
|||||||
# if result:
|
# if result:
|
||||||
# print(f"Reverse DNS lookup for {ip_address_to_check}: {result}")
|
# print(f"Reverse DNS lookup for {ip_address_to_check}: {result}")
|
||||||
# else:
|
# else:
|
||||||
# print(f"Reverse DNS lookup failed for {ip_address_to_check}")
|
# print(f"Reverse DNS lookup failed for {ip_address_to_check}")
|
||||||
|
|
||||||
|
|
||||||
value = '/home//hey.txt'
|
|
||||||
print(value[6:])
|
|
||||||
Reference in New Issue
Block a user