summaryrefslogtreecommitdiffstats
path: root/abs/core/mythtv/stable-0.28/mythtv/mythtv.install
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2016-04-06 20:06:24 (GMT)
committerBritney Fransen <brfransen@gmail.com>2016-04-06 20:06:24 (GMT)
commit2140c6b49336ddaa530c2930b1c2bfb8d3792a93 (patch)
tree2956c75825e9459d9c64437d3c9b2c0f71cbd927 /abs/core/mythtv/stable-0.28/mythtv/mythtv.install
parentdca5fe04c38ba70396da0e7df4af932d8260c67b (diff)
downloadlinhes_pkgbuild-2140c6b49336ddaa530c2930b1c2bfb8d3792a93.zip
linhes_pkgbuild-2140c6b49336ddaa530c2930b1c2bfb8d3792a93.tar.gz
linhes_pkgbuild-2140c6b49336ddaa530c2930b1c2bfb8d3792a93.tar.bz2
mythtv, mythplugins, mythweb: update to latest fixes
run add_storage.py --reconstruct_sg to .install when updating from .27
Diffstat (limited to 'abs/core/mythtv/stable-0.28/mythtv/mythtv.install')
-rw-r--r--abs/core/mythtv/stable-0.28/mythtv/mythtv.install9
1 files changed, 9 insertions, 0 deletions
diff --git a/abs/core/mythtv/stable-0.28/mythtv/mythtv.install b/abs/core/mythtv/stable-0.28/mythtv/mythtv.install
index 4ca5ebc..aedebbf 100644
--- a/abs/core/mythtv/stable-0.28/mythtv/mythtv.install
+++ b/abs/core/mythtv/stable-0.28/mythtv/mythtv.install
@@ -6,6 +6,15 @@ post_install() {
}
pre_upgrade() {
+ if [ "`vercmp $2 0.28`" -lt 0 ]
+ then
+ . /etc/systemconfig
+ if [ $SystemType = "Master_backend" -o $SystemType = "Standalone" ]
+ then
+ echo "upgrading from 0.27, adding new storage groups..."
+ add_storage.py --reconstruct_sg
+ fi
+ fi
/bin/true
}