Hi, 

Im designing a package that uses a bash postinstall script to handle various 
tasks.

When installing this script, pkgadd complains of the syntax of the bash script. 

<snip>
## Executing postinstall script.
/var/sadm/pkg/PKGNAME/install/postinstall: syntax error at line 4: 
`PKGNAME_GROUPS=' unexpected
pkgadd: ERROR: postinstall script did not complete successfully
</snip>

PKGNAME_GROUPS is a bash array (which bourne shell appears to not support) like 
so

PKGNAME_GROUPS=(
                foo
                bar
                )

Reading the 'Application Packaging Developers Guide'[0], it states that 
installation scripts must be executable by the bourne shell.

Is there any way a installation script other than one written in sh be used 
when developing packages?

--
Rene

[0] - http://docs.sun.com/app/docs/doc/817-0406/6mg76sten?a=view

Reply via email to