Skip to content

Commit 874cdfd

Browse files
committed
1 parent ed4cfb1 commit 874cdfd

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

install/installCyberPanel.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -294,9 +294,11 @@ def installMySQL(self, mysql):
294294
Components: main main/debug
295295
Signed-By: /etc/apt/keyrings/mariadb-keyring.pgp
296296
"""
297-
WriteToFile = open(RepoPath, 'w')
298-
WriteToFile.write(RepoContent)
299-
WriteToFile.close()
297+
298+
if get_Ubuntu_release() > 21.00:
299+
WriteToFile = open(RepoPath, 'w')
300+
WriteToFile.write(RepoContent)
301+
WriteToFile.close()
300302

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

plogical/test1.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,4 @@
3636
# if result:
3737
# print(f"Reverse DNS lookup for {ip_address_to_check}: {result}")
3838
# else:
39-
# print(f"Reverse DNS lookup failed for {ip_address_to_check}")
40-
41-
42-
value = '/home//hey.txt'
43-
print(value[6:])
39+
# print(f"Reverse DNS lookup failed for {ip_address_to_check}")

0 commit comments

Comments
 (0)