Commit 22cfa7e9 authored by Tollef Fog Heen's avatar Tollef Fog Heen

* Handle relative output file paths correctly by using basename when

  symlinking to the hash file.  Closes: 292157.

git-svn-id: svn+ssh://svn.debian.org/svn/pkg-apache/trunk/ssl-cert@581 01b336ce-410b-0410-9a02-a0e7f243c266
parent 4bfe318c
......@@ -31,6 +31,8 @@ ssl-cert (1.0.15) UNRELEASED; urgency=low
Closes: 384595.
* Only ask for hostname, drop questions about country, organisation and
such. Closes: 230391, 287692.
* Handle relative output file paths correctly by using basename when
symlinking to the hash file. Closes: 292157.
-- Tollef Fog Heen <tfheen@debian.org> Sun, 10 Feb 2008 20:22:54 +0100
......
......@@ -78,7 +78,7 @@ if [ "$1" != "generate-default-snakeoil" ]; then
chmod 600 $output
# hash symlink
cd $(dirname $output)
ln -sf $(basename $output) $(openssl x509 -hash -noout -in $output)
ln -sf $(basename $output) $(openssl x509 -hash -noout -in $(basename $output))
else
openssl req -config $TMPFILE -new -x509 -days 3650 -nodes \
-out /etc/ssl/certs/ssl-cert-snakeoil.pem \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment