42d0ad
From ea164ceafa05f96079204a3f0ae379e46e64a455 Mon Sep 17 00:00:00 2001
42d0ad
From: Alexander Scheel <ascheel@redhat.com>
42d0ad
Date: Tue, 4 Aug 2020 10:08:15 -0400
42d0ad
Subject: [PATCH] Fix permissions after generating certificates with make
42d0ad
42d0ad
Signed-off-by: Alexander Scheel <ascheel@redhat.com>
42d0ad
---
42d0ad
 raddb/certs/bootstrap | 5 ++++-
42d0ad
 1 file changed, 4 insertions(+), 1 deletion(-)
42d0ad
42d0ad
diff --git a/raddb/certs/bootstrap b/raddb/certs/bootstrap
42d0ad
index 336a2bd..9920ecf 100755
42d0ad
--- a/raddb/certs/bootstrap
42d0ad
+++ b/raddb/certs/bootstrap
42d0ad
@@ -21,7 +21,10 @@ make -h > /dev/null 2>&1
42d0ad
 #
42d0ad
 if [ "$?" = "0" ]; then
42d0ad
   make all
42d0ad
-  exit $?
42d0ad
+  ret=$?
42d0ad
+  chown root:radiusd dh ca.* client.* server.*
42d0ad
+  chmod 640 dh ca.* client.* server.*
42d0ad
+  exit $ret
42d0ad
 fi
42d0ad
 
42d0ad
 #
42d0ad
-- 
42d0ad
2.26.2
42d0ad