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
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
TLS Certificate = "/etc/bacula/bacula-fd.pem"
TLS Key = "/etc/bacula/bacula-fd.pem"
}
+
+Console {
+ Name = $HOST-acl
+ Password = "$PASS_BCONSOLE"
+}
EOF
fi
}