bug fix: upgrade: stop ssh server

This commit is contained in:
Usman Nasir
2019-11-06 14:17:52 +05:00
parent 802c8f3d00
commit f1f2d55e6e

View File

@@ -1925,6 +1925,9 @@ failovermethod=priority
# Upgrade.stdOut("Upgrades are currently disabled")
# return 0
command = 'systemctl stop cpssh'
Upgrade.executioner(command, 'fix csf if there', 0)
postfixPath = '/home/cyberpanel/postfix'
pdns = '/home/cyberpanel/pdns'
pureftpd = '/home/cyberpanel/ftp'
@@ -2013,6 +2016,8 @@ failovermethod=priority
command = 'csf -uf'
Upgrade.executioner(command, 'fix csf if there', 0)
command = 'systemctl start cpssh'
Upgrade.executioner(command, 'fix csf if there', 0)
Upgrade.stdOut("Upgrade Completed.")