papercut init script syntax error prevents package from being installed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
papercut (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: papercut
I'm running on 8.04 hardy-lts, which was recently upgraded in place from 6.06 dapper-lts.
The papercut 0.9.13-5 package's init.d script has an error that prevents it from being installed. After the start/stop/restart command is executed, it attempts to check the return value by using a bash-like syntax. Since the script is run from /bin/sh, bash emulates typical bourne shell behaviour and runs the expression [ $? == 0 ] through the [ program, which doesn't like ==. The fix is to change the == to -eq. The postinst script tries to run the init script, which fails and thus causes the install to fail.
I've attached a patch that will fix the script itself, although it needs to be fixed upstream for the package to install correctly.
Papercut installs with no problems on jaunty. Setting bug to fix released