aboutsummaryrefslogtreecommitdiffstats
path: root/community/tinyssh/tinyssh.initd
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2018-10-11 16:36:28 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2018-10-11 16:37:57 +0200
commit7662bc3e73b9b9564888c16b52c19510deae62d2 (patch)
tree7ddcc848f186ccdecafe028e9dfa65431d39d976 /community/tinyssh/tinyssh.initd
parent0f74bcda4e8541d898217d53aaba0b19f2010d03 (diff)
downloadaports-7662bc3e73b9b9564888c16b52c19510deae62d2.tar.bz2
aports-7662bc3e73b9b9564888c16b52c19510deae62d2.tar.xz
community/tinyssh: fix #9550
only run tinysshd-keygen if /etc/tinyssh/sshkeys is missing
Diffstat (limited to 'community/tinyssh/tinyssh.initd')
-rw-r--r--community/tinyssh/tinyssh.initd6
1 files changed, 4 insertions, 2 deletions
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
}