papercut init script syntax error prevents package from being installed

Bug #224835 reported by Michael Ryan
4
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.

Revision history for this message
Michael Ryan (mjryan) wrote :
Revision history for this message
Charlie_Smotherman (cjsmo) wrote :

Papercut installs with no problems on jaunty. Setting bug to fix released

Changed in papercut (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.