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