Bug #26563 postinstall fail with pkgadd
Submitted: 22 Feb 2007 11:01 Modified: 23 Feb 2007 7:21
Reporter: Sveta Smirnova Email Updates:
Status: Closed Impact on me:
Category:MySQL Server: Installing Severity:S3 (Non-critical)
Version:5.0 OS:Solaris (Solaris)
Assigned to: Daniel Fischer CPU Architecture:Any

[22 Feb 2007 11:01] Sveta Smirnova
When one installs Solaris package by command `pkgadd -d mysql-enterprise-gpl-5.0.34-solaris10-x86_64.pkg` postinstall fails with error "/var/sadm/pkg/mysql/install/postinstall: test: argument expected
pkgadd: ERROR: postinstall script did not complete successfully

Installation of <mysql> failed."

It happens, because Solaris test doesn't support -e option if $SHELL is sh

How to repeat:
See description

Suggested fix:
Replace [ -e /usr/local ] with [ -d /usr/local ]
[22 Feb 2007 11:01] Sveta Smirnova
See also http://docs.sun.com/app/docs/doc/817-0674/6mgf6fkns?q=test&a=view
[23 Feb 2007 7:21] Daniel Fischer
The offending -e was only present between January 1st and February 10th inclusive. Solaris packages built before this year or after February 10th this year are unaffected.