From 7662bc3e73b9b9564888c16b52c19510deae62d2 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Thu, 11 Oct 2018 16:36:28 +0200 Subject: community/tinyssh: fix #9550 only run tinysshd-keygen if /etc/tinyssh/sshkeys is missing --- community/tinyssh/tinyssh.initd | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'community/tinyssh/tinyssh.initd') diff --git a/community/tinyssh/tinyssh.initd b/community/tinyssh/tinyssh.initd index 49225d2fce..522250282a 100644 --- a/community/tinyssh/tinyssh.initd +++ b/community/tinyssh/tinyssh.initd @@ -28,6 +28,8 @@ depend() { } start_pre() { - checkpath --directory ${CONFDIR} - $keygen $keydir 2>/dev/null + if ! [ -d "$keydir" ]; then + checkpath --directory ${CONFDIR} + $keygen $keydir 2>/dev/null + fi } -- cgit v1.2.3