intel / SGXDataCenterAttestationPrimitives

Other
278 stars 165 forks source link

The postun script should distinguish uninstall and upgrade scenarios. #262

Open BornThisWay opened 2 years ago

BornThisWay commented 2 years ago

https://github.com/intel/SGXDataCenterAttestationPrimitives/blob/6f77ba8f153e7cecd8da3cf65a0f1bb0cdc1f638/tools/PCKRetrievalTool/installer/rpm/sgx-pck-id-retrieval-tool/sgx-pck-id-retrieval-tool.spec#L81

In the example, /usr/local/bin/PCKIDRetrievalTool disappears after the package is upgraded, all postun scripts in this repository have this problem.

llly commented 1 year ago

We have updated the script in 1.14 release. So upgrade scenario from 1.14 to 1.15 is fixed.