Proper %post and %postun scripts in spec file
authorMariusz Domanski <m.domanski@samsung.com>
Wed, 20 Feb 2013 14:43:36 +0000 (15:43 +0100)
committerMariusz Domanski <m.domanski@samsung.com>
Wed, 20 Feb 2013 16:07:23 +0000 (17:07 +0100)
commitef6876f927342db5a7f3eafeb5f8cb40b7712ca7
tree472d7df1169a5d7510431db4d7bffdd6cb82e693
parent529ed4c189a29d88f933b022d6fc5824d85b9d02
Proper %post and %postun scripts in spec file

[Issue#]   N/A
[Bug]      errors when upgrading rpm package via rpm -U command
[Cause]    bugged %post and %postun scripts in spec file
[Solution] fixed %post and %postun scripts to handle upgrades properly

[Verification] Build and install rpm files, then increment version
               number in spec file and build and install with rpm -U.
               No security-server related errors should appear after
               second installation, S10security-server symlinks in
               /etc/rc.d/rc3.d/ and /etc/rc.d/rc5.d/ should exist.
               After package uninstallation symlinks should be gone.

Change-Id: I5f0ec6e640f14c12335de0338d3e75d883d1a79e
packaging/security-server.spec