Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add symlink to mysql-tools in postinstall.

  • Loading branch information...
commit 81a4e3cd553397f9352f1762c2234ee86594d8e3 1 parent 0e34cfa
Jens Braeuer authored
Showing with 10 additions and 0 deletions.
  1. +2 −0  Rakefile
  2. +4 −0 debian/post-install
  3. +4 −0 debian/post-uninstall
View
2  Rakefile
@@ -32,6 +32,8 @@ task :deb => [:package] do
system(%{fpm1.9.1 -s gem -t deb
--gem-gem=/usr/bin/gem1.9.1
--gem-package-prefix=rubygem19
+ --post-install=../debian/post-install
+ --post-uninstall=../debian/post-uninstall
--depends rubygems1.9.1 mysql-tools*.gem
}.delete("\n"))
end
View
4 debian/post-install
@@ -0,0 +1,4 @@
+#! /bin/bash
+
+set -e
+ln -sf ../../var/lib/gems/1.9.1/bin/mysql-tools /usr/bin/mysql-tools
View
4 debian/post-uninstall
@@ -0,0 +1,4 @@
+#! /bin/bash
+
+set -e
+rm -f /usr/bin/mysql-tools
Please sign in to comment.
Something went wrong with that request. Please try again.