Build packages changes

This commit is contained in:
Evgeniy Patlan
2017-02-03 17:45:42 +02:00
parent 6fa66b4e97
commit 4ad2ccc423
3 changed files with 24 additions and 2 deletions

9
config/deb/preinst Normal file
View File

@@ -0,0 +1,9 @@
#!/bin/sh
INSTALLED=`dpkg-query -l | grep percona-toolkit | awk '{print $3}' | awk -F'.' '{print $1}'`
if [ $INSTALLED != "0" -a "x$INSTALLED" != "x3" ]; then
echo "** It is not possible to install percona-toolkit-3.0.0rc as it will replace already installed package"
echo "** Please note that percona-toolkit-3.0.0 is RC"
echo "** If you want to install it you need to remove already installed package"
exit 1
fi