summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-09-02 13:57:18 +0200
committerErich Eckner <git@eckner.net>2019-09-02 13:57:18 +0200
commita5f105f46671467aa46fcedef99a80d4f0ddadec (patch)
tree808f339824c78364c1f893ff38c4593f1faf9d53
parentfee2608f4cb4f28e388f5d4cf367f79d39de7bc6 (diff)
downloadsimple-pki-a5f105f46671467aa46fcedef99a80d4f0ddadec.tar.xz
sign-ca: also chown -R $ca_user the key dir
-rwxr-xr-xsign-ca.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/sign-ca.in b/sign-ca.in
index 4f65463..25d1a98 100755
--- a/sign-ca.in
+++ b/sign-ca.in
@@ -10,6 +10,7 @@ fi
if [ -n "${ca_user}" ] \
&& [ "$(whoami)" != "${ca_user}" ]; then
+ chown -R "${ca_user}" '#ETCDIR#/simple-pki/ca'
exec su "${ca_user}" -c "$0"
fi