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

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