From b23ebb921164c110410712fc40f57ae2f9901267 Mon Sep 17 00:00:00 2001 From: CYBER PERSONS Date: Sat, 22 May 2021 15:54:53 +0500 Subject: [PATCH] bug fix lsws trial install --- install/installCyberPanel.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/install/installCyberPanel.py b/install/installCyberPanel.py index 82324db45..102ce1106 100755 --- a/install/installCyberPanel.py +++ b/install/installCyberPanel.py @@ -93,9 +93,13 @@ class InstallCyberPanel: command = 'tar zxf lsws-6.0-ent-x86_64-linux.tar.gz' install.preFlightsChecks.call(command, self.distro, command, command, 1, 1, os.EX_OSERR) - writeSerial = open('lsws-6.0/serial.no', 'w') - writeSerial.writelines(self.serial) - writeSerial.close() + if str.lower(self.serial) == 'trial': + command = 'wget -q --output-document=lsws-6.0/trial.key http://license.litespeedtech.com/reseller/trial.key' + install.preFlightsChecks.call(command, self.distro, command, command, 1, 1, os.EX_OSERR) + else: + writeSerial = open('lsws-6.0/serial.no', 'w') + writeSerial.writelines(self.serial) + writeSerial.close() shutil.copy('litespeed/install.sh', 'lsws-6.0/') shutil.copy('litespeed/functions.sh', 'lsws-6.0/')