Skip to content

Commit fcd0746

Browse files
committed
bug fix: mariadb install
1 parent 0b8f6ac commit fcd0746

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

install/installCyberPanel.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -318,9 +318,13 @@ def installMySQL(self, mysql):
318318
"""
319319

320320
if get_Ubuntu_release() > 21.00:
321-
WriteToFile = open(RepoPath, 'w')
322-
WriteToFile.write(RepoContent)
323-
WriteToFile.close()
321+
command = 'curl -LsS https://downloads.mariadb.com/MariaDB/mariadb_repo_setup | sudo bash -s -- --mariadb-server-version=10.11'
322+
install.preFlightsChecks.call(command, self.distro, command, command, 1, 1, os.EX_OSERR, True)
323+
# WriteToFile = open(RepoPath, 'w')
324+
# WriteToFile.write(RepoContent)
325+
# WriteToFile.close()
326+
327+
324328

325329
command = 'DEBIAN_FRONTEND=noninteractive apt-get update -y'
326330
install.preFlightsChecks.call(command, self.distro, command, command, 1, 1, os.EX_OSERR, True)

0 commit comments

Comments
 (0)