Commit 692b4d9f authored by Patrick J Cherry's avatar Patrick J Cherry
Browse files

Update to mysql package to comment out skip-bdb such that upgrades to squeeze are painless.

parent fde585e2
symbiosis-mysql (2010:0916) oldstable; urgency=low
* Updated postinst to remove skip-bdb from my.cnf as needed.
-- Patrick J Cherry <patrick@bytemark.co.uk> Mon, 23 Jan 2012 12:35:23 +0000
symbiosis-mysql (2010:0914) oldstable; urgency=low
* Tidied packaging
......
......@@ -90,13 +90,33 @@ if ( mysql --user=root --pass="" -e "SHOW DATABASES" 2>/dev/null >/dev/null ); t
fi
#
# Record if any action is needed.
#
action=""
#
# If we're not binding globally then fix things, and restart.
#
if ( grep ^bind-address /etc/mysql/my.cnf >/dev/null 2>/dev/null ); then
sed -i~ -e "s/^bind-address[ \t]*=[ \t]*127.0.0.1/# \0/" /etc/mysql/my.cnf
invoke-rc.d mysql restart
action="restart"
fi
#
# Skip-bdb
#
if ( grep ^skip-bdb /etc/mysql/my.cnf >/dev/null 2>/dev/null ); then
sed -i~ -e "s/^skip-bdb.*/# \0/" /etc/mysql/my.cnf
action="restart"
fi
#
# Restart mysql if needed.
#
if [ -n "$action" ] ; then
invoke-rc.d mysql $action
fi
#DEBHELPER#
exit 0
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment