bacula-director script broken
Bug #204145 reported by
CaptRon
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
bacula (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Binary package hint: bacula
In the change to bacula 2.2.8-5, the bacula-director script breaks on my server. I get Syntax error: "fi" unexpected (expecting "then") at this code:
if do_start; log_daemon_msg -n "Starting $DESC: "; fi
The older version had this:
if do_start ; then echo "$NAME."
else echo "failed." ; fi
If I change the code to the old version OR change the logic of the new version, I get the following error:
log_daemon_msg not found
Whazzup?
Thanx,
-Ron
Related branches
Changed in bacula: | |
importance: | Undecided → Medium |
status: | New → In Progress |
Changed in bacula: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
The script is broken since it appears to be expecting bash instead of dash. That is why the if is broken.
Secondly, the log_daemon_msg appears to have been replaced with log_begin_ action_ msg in ubuntu, causing the second error.
I can confirm that the current package is broken.