summaryrefslogtreecommitdiffstats
path: root/abs/core/mythdb-initial
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2012-10-29 19:06:12 (GMT)
committerJames Meyer <james.meyer@operamail.com>2012-10-29 19:06:12 (GMT)
commit9b57bfb2f2074613a60b29518b0671cbc7eff711 (patch)
tree4bdf68eb87ab5c95a366ccfc2834476694980307 /abs/core/mythdb-initial
parent88b26331f2219c06ed6624d4e3094cd9e8ad7757 (diff)
downloadlinhes_pkgbuild-9b57bfb2f2074613a60b29518b0671cbc7eff711.zip
linhes_pkgbuild-9b57bfb2f2074613a60b29518b0671cbc7eff711.tar.gz
linhes_pkgbuild-9b57bfb2f2074613a60b29518b0671cbc7eff711.tar.bz2
mythtdb-initial: load mysql timezones, which is needed for mythtv .26
Diffstat (limited to 'abs/core/mythdb-initial')
-rwxr-xr-xabs/core/mythdb-initial/PKGBUILD2
-rwxr-xr-xabs/core/mythdb-initial/mythdb.install2
2 files changed, 3 insertions, 1 deletions
diff --git a/abs/core/mythdb-initial/PKGBUILD b/abs/core/mythdb-initial/PKGBUILD
index e6f3afa..f02d108 100755
--- a/abs/core/mythdb-initial/PKGBUILD
+++ b/abs/core/mythdb-initial/PKGBUILD
@@ -1,6 +1,6 @@
pkgname=mythdb-initial
pkgver=2
-pkgrel=34
+pkgrel=35
pkgdesc="setup the initial mythtv database for linhes"
url=""
license=""
diff --git a/abs/core/mythdb-initial/mythdb.install b/abs/core/mythdb-initial/mythdb.install
index e55fa3f..be4e64f 100755
--- a/abs/core/mythdb-initial/mythdb.install
+++ b/abs/core/mythdb-initial/mythdb.install
@@ -2,6 +2,8 @@ mydate=`date +%m-%d-%y`
HOST=`hostname`
post_install() {
mysqldump mythconverg >/data/database/mythconverg.${mydate}.sql
+ #load timezone info for mythtv .26
+ mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u root mysql
mysql -u root -e 'drop database mythconverg;'
mysql -u root -e 'create database mythconverg;'