The conditional was incorrect - postInstall script should only hsppen when enableShared = true. (cherry picked from commit 5e062942)