dot

packages and services management
Log | Files | Refs | README

commit b61be8e8e960d49560b6a9de3a4caf37015e11d8
parent ce29f761bfe7a41efc8c18791f438021f006a657
Author: Josuah Demangeon <mail@josuah.net>
Date:   Tue, 20 Nov 2018 23:29:19 +0100

s6/tinyssh: use the setup script

Diffstat:
Ms6/tinysshd/x/run | 5+----
As6/tinysshd/x/setup | 5+++++
Ms6/venti/x/run | 2+-
3 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/s6/tinysshd/x/run b/s6/tinysshd/x/run @@ -4,8 +4,5 @@ fdmove -c 2 1 s6-envdir env multisubstitute { importas PORT PORT } -ifelse -n { test -d key } { tinysshd-makekey key } -if { chmod 500 key } - s6-tcpserver $HOST $PORT -tinysshd -sovv key +tinysshd -sovv data/key diff --git a/s6/tinysshd/x/setup b/s6/tinysshd/x/setup @@ -0,0 +1,5 @@ +#!/usr/bin/env execlineb + +if { mkdir -p data } +if { tinysshd-makekey data/key } +if { chmod 500 data/key } diff --git a/s6/venti/x/run b/s6/venti/x/run @@ -1,5 +1,5 @@ #!/usr/bin/env execlineb -fdmove -c 2 1 s6-envuidgid env multisubstitute { +fdmove -c 2 1 s6-envdir env multisubstitute { importas ROOT ROOT importas PORT_A PORT_A importas PORT_H PORT_H