summaryrefslogtreecommitdiffstats
path: root/abs/core/mysql/mysql.install
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2012-10-29 19:05:46 (GMT)
committerJames Meyer <james.meyer@operamail.com>2012-10-29 19:05:46 (GMT)
commit88b26331f2219c06ed6624d4e3094cd9e8ad7757 (patch)
tree472c35ab18a483d2d55243964d736c76db78b097 /abs/core/mysql/mysql.install
parenta669c8442c818a1288d80f101faafe15400c7ab1 (diff)
downloadlinhes_pkgbuild-88b26331f2219c06ed6624d4e3094cd9e8ad7757.zip
linhes_pkgbuild-88b26331f2219c06ed6624d4e3094cd9e8ad7757.tar.gz
linhes_pkgbuild-88b26331f2219c06ed6624d4e3094cd9e8ad7757.tar.bz2
mysq: update to 5.5
Diffstat (limited to 'abs/core/mysql/mysql.install')
-rw-r--r--abs/core/mysql/mysql.install10
1 files changed, 9 insertions, 1 deletions
diff --git a/abs/core/mysql/mysql.install b/abs/core/mysql/mysql.install
index 9e9011d..a98f1a8 100644
--- a/abs/core/mysql/mysql.install
+++ b/abs/core/mysql/mysql.install
@@ -1,13 +1,21 @@
post_install(){
groupadd -g 89 mysql &>/dev/null
useradd -u 89 -g mysql -d /var/lib/mysql -s /bin/false mysql &>/dev/null
- usr/bin/mysql_install_db --user=mysql
+ usr/bin/mysql_install_db --user=mysql --basedir=/usr
chown -R mysql:mysql var/lib/mysql &>/dev/null
+
+ usr/bin/systemd-tmpfiles --create mysqld.conf
}
post_upgrade(){
getent group mysql >/dev/null 2>&1 || groupadd -g 89 mysql &>/dev/null
getent passwd mysql >/dev/null 2>&1 || useradd -u 89 -g mysql -d /var/lib/mysql -s /bin/false mysql &>/dev/null
+
+ if [ "$(vercmp $2 5.5)" -lt 0 ]; then
+ echo " >> "
+ echo " >> Major version update. Consider restart the service, and then running mysql_upgrade after it."
+ echo " >> "
+ fi
}
post_remove(){