Properly write postinstall script