]> Sergey Matveev's repositories - tofuproxy.git/blob - state-init
Unify redirection operator usage
[tofuproxy.git] / state-init
1 #!/bin/sh -e
2
3 root="$(dirname "$(realpath -- "$0")")"
4 [ -s cert.pem ] || {
5     prev=`umask`
6     umask 077
7     "$root"/cmd/certgen/certgen >cert.pem
8     umask $prev
9 }
10 mkdir -p fifos
11 cd fifos
12 "$root"/fifos/ensure
13 cd ..
14 for e in "$root"/contrib/*.txt ; do
15     [ -s "${e##*/}" ] || cp $e .
16 done