mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-08 06:16:08 +01:00
bug fix: upgrade: stop ssh server
This commit is contained in:
@@ -1925,6 +1925,9 @@ failovermethod=priority
|
|||||||
# Upgrade.stdOut("Upgrades are currently disabled")
|
# Upgrade.stdOut("Upgrades are currently disabled")
|
||||||
# return 0
|
# return 0
|
||||||
|
|
||||||
|
command = 'systemctl stop cpssh'
|
||||||
|
Upgrade.executioner(command, 'fix csf if there', 0)
|
||||||
|
|
||||||
postfixPath = '/home/cyberpanel/postfix'
|
postfixPath = '/home/cyberpanel/postfix'
|
||||||
pdns = '/home/cyberpanel/pdns'
|
pdns = '/home/cyberpanel/pdns'
|
||||||
pureftpd = '/home/cyberpanel/ftp'
|
pureftpd = '/home/cyberpanel/ftp'
|
||||||
@@ -2013,6 +2016,8 @@ failovermethod=priority
|
|||||||
|
|
||||||
command = 'csf -uf'
|
command = 'csf -uf'
|
||||||
Upgrade.executioner(command, 'fix csf if there', 0)
|
Upgrade.executioner(command, 'fix csf if there', 0)
|
||||||
|
command = 'systemctl start cpssh'
|
||||||
|
Upgrade.executioner(command, 'fix csf if there', 0)
|
||||||
|
|
||||||
Upgrade.stdOut("Upgrade Completed.")
|
Upgrade.stdOut("Upgrade Completed.")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user