dot

packages and services management
Log | Files | Refs | README

commit 547c51c1787fe020dff5c3de7385ba3f00747bd1
parent 9da7aa596904ae521c517da4bad5549ed887a9d4
Author: Josuah Demangeon <mail@josuah.net>
Date:   Fri, 30 Mar 2018 13:32:27 +0200

adding missing pass commands

Diffstat:
Mbin/mksvdir | 2+-
Arun/authsrv9/pass | 6++++++
Arun/u9fs/pass | 14++++++++++++++
3 files changed, 21 insertions(+), 1 deletion(-)

diff --git a/bin/mksvdir b/bin/mksvdir @@ -15,6 +15,6 @@ fi target="${2-$1}" mkdir -p "$SVDIR/$target/log" -cp -R "$HOME/etc/run/$1"/* "$SVDIR/$target" +cp -Rf "$HOME/etc/run/$1"/* "$SVDIR/$target" ln -sf "$HOME/etc/run/$1/run" "$SVDIR/$target/run" ln -sf "$HOME/etc/run/svlogd/run" "$SVDIR/$target/log/run" diff --git a/run/authsrv9/pass b/run/authsrv9/pass @@ -0,0 +1,6 @@ +#!/bin/sh -ex + +for u in josuah bootes sys +do + [ -f "auth/users/$u/key" ] || passtokey >"auth/users/$u/key" +done diff --git a/run/u9fs/pass b/run/u9fs/pass @@ -0,0 +1,14 @@ +#!/bin/sh -e + +[ ! -f key ] + +stty -echo +printf 'password: ' +sed q >key +printf '\n' +stty echo + +printf 'bootes\n' >>key +printf 'local\n' >>key + +chmod 600 key