projects
/
bacula-cn.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6684c58
)
Fallback hostname to localhost.
author
Valentin Vidic
<Valentin.Vidic@CARNet.hr>
Tue, 28 Oct 2014 15:08:07 +0000
(16:08 +0100)
committer
Valentin Vidic
<Valentin.Vidic@CARNet.hr>
Tue, 28 Oct 2014 15:08:07 +0000
(16:08 +0100)
debian/config
patch
|
blob
|
history
diff --git
a/debian/config
b/debian/config
index
bd7a5fc
..
eb026c6
100644
(file)
--- a/
debian/config
+++ b/
debian/config
@@
-5,6
+5,10
@@
set -e
# Guess default hostname
HOST=$( hostname -f || true )
+if [ -z "$HOST" ]; then
+ HOST=localhost
+fi
+
db_get bacula-cn/hostname || true
if [ -z "$RET" ]; then
db_set bacula-cn/hostname "$HOST"