bug fix lsws trial install

This commit is contained in:
CYBER PERSONS
2021-05-22 15:54:53 +05:00
parent 4740fa1db2
commit b23ebb9211

View File

@@ -93,6 +93,10 @@ 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)
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()