summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-12-09 19:57:01 +0100
committerErich Eckner <git@eckner.net>2019-12-09 19:57:01 +0100
commit9682674483d63e54d854cb173994c818c000a4bc (patch)
tree2ef4535fb51df1d20964a76a1263df03e618cceb
parent86480e36a2b2f9e69c32e6a17babc3914c998f35 (diff)
downloadsimple-pki-9682674483d63e54d854cb173994c818c000a4bc.tar.xz
sign-ca.in: bugfix
-rwxr-xr-xsign-ca.in12
1 files changed, 6 insertions, 6 deletions
diff --git a/sign-ca.in b/sign-ca.in
index 09ba8a2..372309c 100755
--- a/sign-ca.in
+++ b/sign-ca.in
@@ -33,14 +33,14 @@ move_old_ca() {
}
level_ground_for_new_ca() {
- install -d -m0755 '#ETCDIR#/simple-pki/ca/'"$1"'/db'
- install -d -m0700 '#ETCDIR#/simple-pki/ca/'"$1"'/private'
+ install -d -m0755 '#ETCDIR#/'"$1"'/ca/'"$1"'/db'
+ install -d -m0700 '#ETCDIR#/'"$1"'/ca/'"$1"'/private'
touch \
- '#ETCDIR#/simple-pki/ca/'"$1"'/db/'"$1"'.db' \
- '#ETCDIR#/simple-pki/ca/'"$1"'/db/'"$1"'.db.attr'
+ '#ETCDIR#/'"$1"'/ca/'"$1"'/db/'"$1"'.db' \
+ '#ETCDIR#/'"$1"'/ca/'"$1"'/db/'"$1"'.db.attr'
echo '01' \
- |tee '#ETCDIR#/simple-pki/ca/'"$1"'/db/'"$1"'.crt.srl' \
- >'#ETCDIR#/simple-pki/ca/'"$1"'/db/'"$1"'.crl.srl'
+ |tee '#ETCDIR#/'"$1"'/ca/'"$1"'/db/'"$1"'.crt.srl' \
+ >'#ETCDIR#/'"$1"'/ca/'"$1"'/db/'"$1"'.crl.srl'
}
if [ -f '#ETCDIR#/simple-pki/ca/root-ca.crt' ]; then