Kill sshd before install/upgrades

master
Daniel Berteaud 6 years ago
parent c1e74392dd
commit d4b9c283c8
  1. 2
      WAPT/control
  2. 1
      setup.py

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

@ -9,6 +9,7 @@ def install():
mkdirs(makepath(programfiles,'OpenSSH')) mkdirs(makepath(programfiles,'OpenSSH'))
print(' Stoping the service') print(' Stoping the service')
run_notfatal(r'sc stop sshd') run_notfatal(r'sc stop sshd')
killalltasks('sshd.exe')
print(' Extract OpenSSH archive') 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')) 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') print(' Installing the service')

Loading…
Cancel
Save