diff options
author | Mika Havela <mika.havela@gmail.com> | 2011-02-09 10:21:15 +0100 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2011-02-22 14:22:33 +0000 |
commit | 325534f013c9b1a46d7587048f913a1984c46802 (patch) | |
tree | f233d521fd4bffb8a6b52dddcc7c553de5d6844c /setup-acf.in | |
parent | beb3a3f8581490e6fd18d786eab4ea068706f4ec (diff) | |
download | alpine-conf-325534f013c9b1a46d7587048f913a1984c46802.tar.bz2 alpine-conf-325534f013c9b1a46d7587048f913a1984c46802.tar.xz |
Bugfix: If hostname -f does not work, then ssl creation will break and acf won't work
FQDN hostname might not be set in /etc/hosts and this could cause 'hostname -f' to fail. Even this does not happen too often, it still is a possibility. This patch prevents the problem.
Diffstat (limited to 'setup-acf.in')
-rw-r--r-- | setup-acf.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/setup-acf.in b/setup-acf.in index 4f2afec..c6f621e 100644 --- a/setup-acf.in +++ b/setup-acf.in @@ -75,7 +75,7 @@ prompt = no [ req_dn ] OU=HTTPS server -CN=$(hostname -f) +CN=$(hostname -f || hostname) emailAddress=${EMAIL:-postmaster@example.com} [ cert_type ] |