Skip to content

Commit

Permalink
fix mariadb install for ubuntu 20 ref https://community.cyberpanel.ne…
Browse files Browse the repository at this point in the history
  • Loading branch information
usmannasir committed Jan 29, 2024
1 parent ed4cfb1 commit 874cdfd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
8 changes: 5 additions & 3 deletions install/installCyberPanel.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,9 +294,11 @@ def installMySQL(self, mysql):
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)
Expand Down
6 changes: 1 addition & 5 deletions plogical/test1.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}")

0 comments on commit 874cdfd

Please sign in to comment.