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