Project

General

Profile

Actions

Bug #1631

closed

dpkg fails with dash

Added by Steve Buzonas over 12 years ago. Updated over 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

Also available in: Atom PDF