Kill sshd before install/upgrades

This commit is contained in:
Daniel Berteaud 2018-12-15 12:07:45 +01:00
parent c1e74392dd
commit d4b9c283c8
2 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,5 @@
package : fws-openssh
version : 7.7.2.0-2
version : 7.7.2.0-3
architecture : all
section : base
priority : optional

View File

@ -9,6 +9,7 @@ def install():
mkdirs(makepath(programfiles,'OpenSSH'))
print(' Stoping the service')
run_notfatal(r'sc stop sshd')
killalltasks('sshd.exe')
print(' Extract OpenSSH archive')
run('"%s" e -y -o"%s" OpenSSH-Win%s.zip' % (makepath(programfiles,'7-Zip','7z.exe'),makepath(programfiles,'OpenSSH'),'64' if iswin64() else '32'))
print(' Installing the service')