mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-10 23:36:11 +01:00
update lscpd
This commit is contained in:
@@ -1331,7 +1331,25 @@ imap_folder_list_limit = 0
|
|||||||
preFlightsChecks.call(command, self.distro, command, command, 1, 0, os.EX_OSERR)
|
preFlightsChecks.call(command, self.distro, command, command, 1, 0, os.EX_OSERR)
|
||||||
|
|
||||||
command = 'tar zxf lscp.tar.gz -C /usr/local/'
|
command = 'tar zxf lscp.tar.gz -C /usr/local/'
|
||||||
preFlightsChecks.call(command, self.distro, command, command, 1, 0, os.EX_OSERR)
|
preFlightsChecks.call(command, self.distro, command, command, 1, 1, os.EX_OSERR)
|
||||||
|
|
||||||
|
###
|
||||||
|
|
||||||
|
lscpdPath = '/usr/local/lscp/bin/lscpd'
|
||||||
|
|
||||||
|
command = 'cp -f /usr/local/CyberCP/lscpd-0.2.5 /usr/local/lscp/bin/lscpd-0.2.5'
|
||||||
|
preFlightsChecks.call(command, self.distro, command, command, 1, 1, os.EX_OSERR)
|
||||||
|
|
||||||
|
command = 'rm -f /usr/local/lscp/bin/lscpd'
|
||||||
|
preFlightsChecks.call(command, self.distro, command, command, 1, 1, os.EX_OSERR)
|
||||||
|
|
||||||
|
command = 'mv /usr/local/lscp/bin/lscpd-0.2.5 /usr/local/lscp/bin/lscpd'
|
||||||
|
preFlightsChecks.call(command, self.distro, command, command, 1, 1, os.EX_OSERR)
|
||||||
|
|
||||||
|
command = 'chmod 755 %s' % (lscpdPath)
|
||||||
|
preFlightsChecks.call(command, self.distro, command, command, 1, 1, os.EX_OSERR)
|
||||||
|
|
||||||
|
##
|
||||||
|
|
||||||
command = 'openssl req -newkey rsa:1024 -new -nodes -x509 -days 3650 -subj "/C=US/ST=Denial/L=Springfield/O=Dis/CN=www.example.com" -keyout /usr/local/lscp/conf/key.pem -out /usr/local/lscp/conf/cert.pem'
|
command = 'openssl req -newkey rsa:1024 -new -nodes -x509 -days 3650 -subj "/C=US/ST=Denial/L=Springfield/O=Dis/CN=www.example.com" -keyout /usr/local/lscp/conf/key.pem -out /usr/local/lscp/conf/cert.pem'
|
||||||
preFlightsChecks.call(command, self.distro, command, command, 1, 0, os.EX_OSERR)
|
preFlightsChecks.call(command, self.distro, command, command, 1, 0, os.EX_OSERR)
|
||||||
|
|||||||
BIN
lscpd-0.2.4 → lscpd-0.2.5
Normal file → Executable file
BIN
lscpd-0.2.4 → lscpd-0.2.5
Normal file → Executable file
Binary file not shown.
@@ -1400,13 +1400,13 @@ class Upgrade:
|
|||||||
if os.path.exists(lscpdPath):
|
if os.path.exists(lscpdPath):
|
||||||
os.remove(lscpdPath)
|
os.remove(lscpdPath)
|
||||||
|
|
||||||
command = 'cp -f /usr/local/CyberCP/lscpd-0.2.4 /usr/local/lscp/bin/lscpd-0.2.4'
|
command = 'cp -f /usr/local/CyberCP/lscpd-0.2.5 /usr/local/lscp/bin/lscpd-0.2.5'
|
||||||
Upgrade.executioner(command, command, 0)
|
Upgrade.executioner(command, command, 0)
|
||||||
|
|
||||||
command = 'rm -f /usr/local/lscp/bin/lscpd'
|
command = 'rm -f /usr/local/lscp/bin/lscpd'
|
||||||
Upgrade.executioner(command, command, 0)
|
Upgrade.executioner(command, command, 0)
|
||||||
|
|
||||||
command = 'mv /usr/local/lscp/bin/lscpd-0.2.4 /usr/local/lscp/bin/lscpd'
|
command = 'mv /usr/local/lscp/bin/lscpd-0.2.5 /usr/local/lscp/bin/lscpd'
|
||||||
Upgrade.executioner(command, command, 0)
|
Upgrade.executioner(command, command, 0)
|
||||||
|
|
||||||
command = 'chmod 755 %s' % (lscpdPath)
|
command = 'chmod 755 %s' % (lscpdPath)
|
||||||
|
|||||||
Reference in New Issue
Block a user