dot

packages and services management
Log | Files | Refs | README

commit ff1cd2d1d3c8dc0d1bb32e8896025633c88e6892
parent e351c4a2cd7ec61b2d7be3277112908fffdb1bcd
Author: Josuah Demangeon <mail@josuah.net>
Date:   Sun,  4 Nov 2018 23:23:30 +0100

fix pack path

Diffstat:
MREADME | 14+++++++-------
Mbin/pass | 10+++++-----
Mprofile.d/pack.sh | 2+-
3 files changed, 13 insertions(+), 13 deletions(-)

diff --git a/README b/README @@ -1,3 +1,5 @@ +## s6 ## + To use the s6-rc setup in this dotfile repository: Install the following software from https://skarnet.org: skalibs, @@ -17,17 +19,15 @@ Then you can setup the s6-rc directories: # ./conf-s6 Setup the initial set of services you want: - # cp -r s6/ok-all /etc/s6 - # - # cp -r s6/service1-* /etc/s6 - # echo service1 >>/etc/s6/ok-all/contents + # cp -r s6/service-1-* /etc/s6 + # service-enable service-1 # - # cp -r s6/service2-* /etc/s6 - # echo service2 >>/etc/s6/ok-all/contents + # cp -r s6/service-2-* /etc/s6 + # service-enable service-2 And start the s6 supervision tree: # ./s6-init You can then add aditionnal directories: # cp -r s6/service-* /etc/s6 - # ./s6-load + # service-load diff --git a/bin/pass b/bin/pass @@ -1,9 +1,9 @@ #!/bin/sh -e - dd if=/dev/random bs=48 count=1 | base64>"/mnt/key/pass/$2" +PASS=${PASS:-/mnt/key/pass/} -PASS=/mnt/key/pass/ - -test $# = 0 && - exec ls "$PASS" || +if [ $# = 0 ]; then + exec ls "$PASS" +else exec cat "$PASS/$1" +fi diff --git a/profile.d/pack.sh b/profile.d/pack.sh @@ -1,3 +1,3 @@ -export PACK=/var/px +export PACK=/var/pack export MANPATH=$PACK/man:$MANPATH export PATH=$PACK/bin:$PATH