mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-08 06:16:08 +01:00
add debugging info
This commit is contained in:
@@ -93,19 +93,17 @@ class InstallCyberPanel:
|
|||||||
command = 'tar zxf lsws-6.0-ent-x86_64-linux.tar.gz'
|
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)
|
install.preFlightsChecks.call(command, self.distro, command, command, 1, 1, os.EX_OSERR)
|
||||||
|
|
||||||
print(self.serial)
|
if self.serial == '1111-2222-3333-4444':
|
||||||
print(os.getcwd())
|
command = 'wget -q --output-document=/root/cyberpanel/install/lsws-6.0/trial.key http://license.litespeedtech.com/reseller/trial.key'
|
||||||
|
|
||||||
time.sleep(10)
|
|
||||||
|
|
||||||
if self.serial.lower() == '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)
|
install.preFlightsChecks.call(command, self.distro, command, command, 1, 1, os.EX_OSERR)
|
||||||
else:
|
else:
|
||||||
writeSerial = open('lsws-6.0/serial.no', 'w')
|
writeSerial = open('lsws-6.0/serial.no', 'w')
|
||||||
writeSerial.writelines(self.serial)
|
writeSerial.writelines(self.serial)
|
||||||
writeSerial.close()
|
writeSerial.close()
|
||||||
|
|
||||||
|
|
||||||
|
time.sleep(50)
|
||||||
|
|
||||||
shutil.copy('litespeed/install.sh', 'lsws-6.0/')
|
shutil.copy('litespeed/install.sh', 'lsws-6.0/')
|
||||||
shutil.copy('litespeed/functions.sh', 'lsws-6.0/')
|
shutil.copy('litespeed/functions.sh', 'lsws-6.0/')
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user