Blame SOURCES/freeradius-bootstrap-make-permissions.patch

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