mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-06-27 10:38:13 +02:00
add loging to db creation
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user