add loging to db creation

This commit is contained in:
Usman Nasir
2021-03-25 23:39:03 +05:00
parent ef08873bc5
commit bb23372c8c
3 changed files with 26 additions and 20 deletions

View File

@@ -87,20 +87,20 @@ class InstallCyberPanel:
except:
pass
command = 'wget https://www.litespeedtech.com/packages/5.0/lsws-5.4.2-ent-x86_64-linux.tar.gz'
command = 'wget https://www.litespeedtech.com/packages/6.0/lsws-6.0-ent-x86_64-linux.tar.gz'
install.preFlightsChecks.call(command, self.distro, command, command, 1, 1, os.EX_OSERR)
command = 'tar zxf lsws-5.4.2-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)
writeSerial = open('lsws-5.4.2/serial.no', 'w')
writeSerial = open('lsws-6.0/serial.no', 'w')
writeSerial.writelines(self.serial)
writeSerial.close()
shutil.copy('litespeed/install.sh', 'lsws-5.3.5/')
shutil.copy('litespeed/functions.sh', 'lsws-5.3.5/')
shutil.copy('litespeed/install.sh', 'lsws-6.0/')
shutil.copy('litespeed/functions.sh', 'lsws-6.0/')
os.chdir('lsws-5.3.5')
os.chdir('lsws-6.0')
command = 'chmod +x install.sh'
install.preFlightsChecks.call(command, self.distro, command, command, 1, 1, os.EX_OSERR)