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:
7f0beb7
)
Fix bconsole config.
author
Valentin Vidic
<Valentin.Vidic@CARNet.hr>
Tue, 8 Mar 2011 12:27:46 +0000
(13:27 +0100)
committer
Valentin Vidic
<Valentin.Vidic@CARNet.hr>
Tue, 8 Mar 2011 12:27:46 +0000
(13:27 +0100)
debian/postinst
patch
|
blob
|
history
diff --git
a/debian/postinst
b/debian/postinst
index
021ff8f
..
b7049bf
100644
(file)
--- a/
debian/postinst
+++ b/
debian/postinst
@@
-91,7
+91,7
@@
EOF
generate_bconsole_config() {
BCONSOLE_CONFIG=/etc/bacula/bconsole.conf
generate_bconsole_config() {
BCONSOLE_CONFIG=/etc/bacula/bconsole.conf
- if [ -s $BCONSOLE_CONFIG ] && grep -q 'sysbackup-dir' $BCONSOLE_CONFIG; then
+ if [ -s $BCONSOLE_CONFIG ] && grep -q 'Console {' $BCONSOLE_CONFIG; then
echo $BCONSOLE_CONFIG already exists, skipping.
else
umask 077
echo $BCONSOLE_CONFIG already exists, skipping.
else
umask 077
@@
-111,7
+111,7
@@
Director {
Name = sysbackup-dir
DIRport = 9101
address = sysbackup.carnet.hr
Name = sysbackup-dir
DIRport = 9101
address = sysbackup.carnet.hr
- Password = "$PASS_BCONSOLE"
+ Password = "__INVALID__" # not used
# you need these TLS entries so the bconsole and Director can communicate
TLS Enable = yes
# you need these TLS entries so the bconsole and Director can communicate
TLS Enable = yes
@@
-120,6
+120,11
@@
Director {
TLS Certificate = "/etc/bacula/bacula-fd.pem"
TLS Key = "/etc/bacula/bacula-fd.pem"
}
TLS Certificate = "/etc/bacula/bacula-fd.pem"
TLS Key = "/etc/bacula/bacula-fd.pem"
}
+
+Console {
+ Name = $HOST-acl
+ Password = "$PASS_BCONSOLE"
+}
EOF
fi
}
EOF
fi
}