From d4b9c283c8951b187ab50ee1f90ef336b8a5c8b2 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Sat, 15 Dec 2018 12:07:45 +0100 Subject: [PATCH] Kill sshd before install/upgrades --- WAPT/control | 2 +- setup.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/WAPT/control b/WAPT/control index 6f03d9d..2a478e3 100644 --- a/WAPT/control +++ b/WAPT/control @@ -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 diff --git a/setup.py b/setup.py index 15472c0..0913e3f 100644 --- a/setup.py +++ b/setup.py @@ -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')