Skip to content

Commit

Permalink
Merge pull request #531 from tcmitchell/526-www-data
Browse files Browse the repository at this point in the history
Make geni-create-ma-crl work on CentOS
  • Loading branch information
tcmitchell authored Sep 13, 2016
2 parents 77562da + 3e9b969 commit 252de73
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

* Add xmlsec1 dependencies to RPM spec
([#525](https://github.com/GENI-NSF/geni-ch/issues/525))
* Make geni-create-ma-crl work on CentOS
([#526](https://github.com/GENI-NSF/geni-ch/issues/526))
* Remove obsolete scripts related to GMOC monitoring
([#527](https://github.com/GENI-NSF/geni-ch/issues/527))
* Remove obsolete scripts related to GMOC monitoring
Expand Down
4 changes: 3 additions & 1 deletion bin/geni-create-ma-crl
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,16 @@
# IN THE WORK.
#----------------------------------------------------------------------

# TODO: use autoconf/automake replacement of paths. Too many
# hardcoded paths below, not good.

# Create an MA CRL file in /usr/share/geni-ch/chapi/ma

CRLNUM=/usr/share/geni-ch/CA/crlnumber
TMP_CRLNUM=/tmp/crlnumber

if [ ! -e "${CRLNUM}" ]; then
echo "1000" > "${TMP_CRLNUM}"
chown www-data.www-data "${TMP_CRLNUM}"
mv "${TMP_CRLNUM}" "${CRLNUM}"
fi
openssl ca -keyfile /usr/share/geni-ch/ma/ma-key.pem \
Expand Down

0 comments on commit 252de73

Please sign in to comment.