Navigation Menu

Skip to content

Commit

Permalink
deb: don't execute uninstall script which is already removed
Browse files Browse the repository at this point in the history
uninstall.sql is already removed on postrm sequence,
so execute such a script on prerm sequence.
  • Loading branch information
kenhys committed Jul 28, 2014
1 parent 1cc403c commit baf4d6b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
3 changes: 0 additions & 3 deletions packages/debian/mysql-server-mroonga.postrm
Expand Up @@ -2,9 +2,6 @@

set -e

cat /usr/share/mroonga/uninstall.sql | \
mysql --defaults-file=/etc/mysql/debian.cnf || true

if [ "$1" = "purge" ]; then
mysql_apparmor_profile_name=usr.sbin.mysqld
mysql_apparmor_profile=/etc/apparmor.d/${mysql_apparmor_profile_name}
Expand Down
10 changes: 10 additions & 0 deletions packages/debian/mysql-server-mroonga.prerm
@@ -0,0 +1,10 @@
#! /bin/sh

set -e

cat /usr/share/mroonga/uninstall.sql | \
mysql --defaults-file=/etc/mysql/debian.cnf || true

#DEBHELPER#

exit 0

0 comments on commit baf4d6b

Please sign in to comment.