bug fix: upgrade: stop ssh server

This commit is contained in:
Usman Nasir
2019-11-06 14:17:52 +05:00
parent 66c16a712b
commit c0413e045d

View File

@@ -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.")