microsoft / omi

Open Management Infrastructure
Other
361 stars 115 forks source link

Change "-e" to "-f" to fix Solaris install failure #639

Closed JumpingYang001 closed 4 years ago

JumpingYang001 commented 5 years ago

On Solaris, omi install fail as below message, after change "-e" to "-f", the issue has gone.

## Installing part 1 of 1.
[ verifying class <none> ]
[ verifying class <config> ]
## Executing postinstall script.
/var/sadm/pkg/MSFTomi/install/postinstall: test: argument expected
pkgadd: ERROR: postinstall script did not complete successfully
Installation of <MSFTomi> failed.
sarojcare commented 4 years ago

Move the changes related to suse11 in commit c4b919f from Base_OMI.data to Linux_RPM.data instead.

JumpingYang001 commented 4 years ago

@sarojcare we failed at generate certs before the suse11 fixes, if we want to move to Linux_RPM.data, we also need to move generate cert logic to other Unix parts data files, how do you think? GenerateKeyCert call $OPENSSL_PATH :https://github.com/microsoft/omi/blob/master/Unix/installbuilder/datafiles/Base_OMI.data#L403