projects
/
bacula-cn.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix postinst with new function
[bacula-cn.git]
/
debian
/
config
diff --git
a/debian/config
b/debian/config
index
73c4f4c
..
eb026c6
100644
(file)
--- a/
debian/config
+++ b/
debian/config
@@
-4,7
+4,11
@@
set -e
. /usr/share/debconf/confmodule
# Guess default hostname
-HOST=$( hostname -f )
+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"