projects
/
shibboleth
/
cpp-sp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
12554c4
)
Guard chmod at the end.
author
Scott Cantor
<cantor.2@osu.edu>
Tue, 18 Aug 2009 14:45:03 +0000
(14:45 +0000)
committer
Scott Cantor
<cantor.2@osu.edu>
Tue, 18 Aug 2009 14:45:03 +0000
(14:45 +0000)
configs/keygen.sh
patch
|
blob
|
history
diff --git
a/configs/keygen.sh
b/configs/keygen.sh
index
0729fe3
..
5ae60db
100755
(executable)
--- a/
configs/keygen.sh
+++ b/
configs/keygen.sh
@@
-66,5
+66,8
@@
else
openssl req -config sp-cert.cnf -new -x509 -days $DAYS -keyout sp-key.pem -out sp-cert.pem 2> /dev/null
fi
-chmod 600 sp-key.pem
rm sp-cert.cnf
+
+if [ -s sp-key.pem ] ; then
+ chmod 600 sp-key.pem
+fi