Navigation Menu

Skip to content

Commit

Permalink
rpm: change %postun to %preun
Browse files Browse the repository at this point in the history
%preun is better than %postun with uninstalling mroonga plugin from
MySQL plugins. Because when postun script run, mroonga plugin file
didn't exist.
  • Loading branch information
iwaim committed May 9, 2012
1 parent bc4f7eb commit 289839a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/rpm/centos/mysql-mroonga.spec.in
Expand Up @@ -135,7 +135,7 @@ eval $command || \
(echo "run the following command to register mroonga:"; \
echo " $command")

%postun
%preun
if [ "$1" = 0 ]; then
sql="
DROP FUNCTION last_insert_grn_id;
Expand Down
2 changes: 1 addition & 1 deletion packages/rpm/fedora/mysql-mroonga.spec.in
Expand Up @@ -89,7 +89,7 @@ eval $command || \
(echo "run the following command to register mroonga:"; \
echo " $command")

%postun
%preun
if [ "$1" = 0 ]; then
sql="
DROP FUNCTION last_insert_grn_id;
Expand Down

0 comments on commit 289839a

Please sign in to comment.