Project

General

Profile

Actions

Bug #1631

closed

dpkg fails with dash

Added by Steve Buzonas almost 12 years ago. Updated about 11 years ago.

Status:
Closed
Priority:
Normal
Category:
DB migrations
Target version:
-
Difficulty:
trivial
Triaged:
Fixed in Releases:
Found in Releases:

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.


Files

install.txt install.txt 9.41 KB Steve Buzonas, 05/18/2012 09:48 AM
Actions #1

Updated by Steve Buzonas almost 12 years 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.

Actions #2

Updated by Ohad Levy almost 12 years ago

  • Assignee set to Greg Sutcliffe
  • Difficulty set to trivial
Actions #3

Updated by Ohad Levy almost 12 years ago

  • Target version set to 1.0
Actions #4

Updated by Ohad Levy almost 12 years ago

  • Target version deleted (1.0)

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

Actions #5

Updated by Greg Sutcliffe almost 12 years ago

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

Actions #6

Updated by Greg Sutcliffe over 11 years 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 :)

Actions #7

Updated by Greg Sutcliffe about 11 years ago

  • Status changed from Feedback to Closed

Closing as discussed in previosu comment.

Actions

Also available in: Atom PDF