[packages/openssh] - rel 6; fix start check

arekm arekm at pld-linux.org
Tue Nov 17 18:30:40 CET 2015


commit 4dc2df040110e568be70e5a7bfd28b3f8ebf5218
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Tue Nov 17 18:30:35 2015 +0100

    - rel 6; fix start check

 openssh.spec  | 2 +-
 opensshd.init | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/openssh.spec b/openssh.spec
index 905afa6..2e5abc3 100644
--- a/openssh.spec
+++ b/openssh.spec
@@ -46,7 +46,7 @@ Summary(ru.UTF-8):	OpenSSH - свободная реализация прото
 Summary(uk.UTF-8):	OpenSSH - вільна реалізація протоколу Secure Shell (SSH)
 Name:		openssh
 Version:	7.1p1
-Release:	6
+Release:	7
 Epoch:		2
 License:	BSD
 Group:		Applications/Networking
diff --git a/opensshd.init b/opensshd.init
index 9e76029..fe09962 100755
--- a/opensshd.init
+++ b/opensshd.init
@@ -56,7 +56,7 @@ start() {
 
 	checkconfig
 
-	if [ ! -s /etc/ssh/ssh_host_key ]; then
+	if [ "$(echo /etc/ssh/ssh_host*key)" = "/etc/ssh/ssh_host*key" ]; then
 		msg_not_running "OpenSSH"
 		nls "No SSH host key found! You must run \"%s init\" first." "$0"
 		exit 1
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/openssh.git/commitdiff/4dc2df040110e568be70e5a7bfd28b3f8ebf5218



More information about the pld-cvs-commit mailing list