Commit 0178b4b4 authored by Stefan Fritsch's avatar Stefan Fritsch

Use unqualified hostname for snakeoil cert if DNS does not work

git-svn-id: svn+ssh://svn.debian.org/svn/pkg-apache/trunk/ssl-cert@635 01b336ce-410b-0410-9a02-a0e7f243c266
parent 35675a74
ssl-cert (1.0.17) UNRELEASED; urgency=low
* If DNS does not work, use unqualified hostname for snakeoil cert instead
of exiting with an error (Closes: #469073).
* Update translations:
- French (thanks to Christian Perrier, closes #467129)
- French (thanks to Christian Perrier, closes: #467129)
- Finnish (thanks to Esko Arajärvi, closes: #468545)
* Add myself to uploaders. Remove Fabio M. Di Nitto and Thom May. Thanks for
your past work.
......
......@@ -23,7 +23,13 @@ ask_via_debconf() {
}
make_snakeoil() {
HostName="$(hostname -f)"
if ! HostName="$(hostname -f)" ; then
HostName="$(hostname)"
echo make-ssl-cert: Could not get FQDN, using \"$HostName\".
echo make-ssl-cert: You may want to fix your /etc/hosts and/or DNS setup and run
echo make-ssl-cert: 'make-ssl-cert generate-default-snakeoil --force-overwrite'
echo make-ssl-cert: again.
fi
}
create_temporary_cnf() {
......
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