Bug #1631

dpkg fails with dash

Added by Steve Buzonas about 1 year ago. Updated about 1 month ago.

Status:Closed Start:05/18/2012
Priority:Normal Due date:
Assigned to:Greg Sutcliffe % Done:

0%

Category:DB migrations
Target version:-
Backlog:No Difficulity:trivial
Votes: 0

Description

When the the system has dash installed and used as the default shell the postinst fails with an exit status 2. What appears to be the culprit is the dbmigrate script choking on POSIX compliance.

The particular segment causing an issue is 'USERNAME=$(/usr/bin/id -un)', it responds that the '(' is unexpected and it is expecting a '{'

A quick fix could be to change #!/bin/sh to #!/bin/bash, however this is likely to cause breakage.

install.txt (9.4 KB) Steve Buzonas, 05/18/2012 09:48 am

History

Updated by Steve Buzonas about 1 year ago

Haven't tested my suggested possible solutions because I changed /bin/sh symlink from dash to bash and am now given an exit status of 1 which I am working on.

I marked this as DB migrations opposed to Package installers due to the fact that the dbmigrate script is causing the installer to fail where it would pass otherwise.

Updated by Ohad Levy about 1 year ago

  • Assigned to set to Greg Sutcliffe
  • Difficulity set to trivial

Updated by Ohad Levy about 1 year ago

  • Target version set to 1.0

Updated by Ohad Levy 12 months ago

  • Target version deleted (1.0)

as this is not a release related, moving it away from here.

Updated by Greg Sutcliffe 12 months ago

When we release 1.0, I hope the new packages will make this go away :)

Updated by Greg Sutcliffe 5 months ago

  • Status changed from New to Feedback

I'm hoping you haven't hit any such problems with the 1.0 packages, or even the 1.1 RCs. I'll close this at 1.1 release if there's no further comment :)

Updated by Greg Sutcliffe about 1 month ago

  • Status changed from Feedback to Closed

Closing as discussed in previosu comment.

Also available in: Atom PDF