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
version : 7.7.2.0-2
version : 7.7.2.0-3
architecture : all
section : base
priority : optional

@ -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')

Loading…
Cancel
Save