summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/linhes-scripts
diff options
context:
space:
mode:
authorCecil Hugh Watson <knoppmyth@gmail.com>2010-02-27 21:22:47 (GMT)
committerCecil Hugh Watson <knoppmyth@gmail.com>2010-02-27 21:22:47 (GMT)
commitb9480f805347762db193853a726eb92d9b674b1f (patch)
tree2ee5096833cc4051641fa69bddf397a083684e72 /abs/core-testing/linhes-scripts
parent28edc1561e098362b1900617988a8c530eec385b (diff)
downloadlinhes_pkgbuild-b9480f805347762db193853a726eb92d9b674b1f.zip
linhes_pkgbuild-b9480f805347762db193853a726eb92d9b674b1f.tar.gz
linhes_pkgbuild-b9480f805347762db193853a726eb92d9b674b1f.tar.bz2
linhes-scripts:final upgrade_to_0.22.sh?!
Diffstat (limited to 'abs/core-testing/linhes-scripts')
-rw-r--r--abs/core-testing/linhes-scripts/PKGBUILD2
-rw-r--r--abs/core-testing/linhes-scripts/upgrade_to_0.22.sh19
2 files changed, 12 insertions, 9 deletions
diff --git a/abs/core-testing/linhes-scripts/PKGBUILD b/abs/core-testing/linhes-scripts/PKGBUILD
index 8d4e879..b997242 100644
--- a/abs/core-testing/linhes-scripts/PKGBUILD
+++ b/abs/core-testing/linhes-scripts/PKGBUILD
@@ -3,7 +3,7 @@
pkgname=linhes-scripts
pkgver=1
-pkgrel=48
+pkgrel=49
pkgdesc="Various scripts that help to make LinHES, LinHES."
arch=('i686' 'x86_64')
license=('GPL2')
diff --git a/abs/core-testing/linhes-scripts/upgrade_to_0.22.sh b/abs/core-testing/linhes-scripts/upgrade_to_0.22.sh
index a90b04e..03b6a1a 100644
--- a/abs/core-testing/linhes-scripts/upgrade_to_0.22.sh
+++ b/abs/core-testing/linhes-scripts/upgrade_to_0.22.sh
@@ -10,8 +10,11 @@ function pause(){
clear
echo "The script will guide you thru the process of upgrading LinHES to MythTV 0.22."
pause 'Press <ENTER> to continue...'
-echo "Stopping the backend."
-sv stop mythbackend &>/dev/null
+if grep -E "Master|Stand" /etc/systemconfig &>/dev/null
+ then
+ echo "Stopping the backend."
+ sv stop mythbackend &>/dev/null
+fi
echo "Sync'n with the repos..."
pacman -Sy &>/dev/null
echo "Removing MythVodka if installed as it is no longer compatible with MythTV."
@@ -77,13 +80,13 @@ if grep -E "Master|Stand" /etc/systemconfig &>/dev/null
#Sleeping for 30 seconds to give the schema time to upgrade....
sleep 30
read -p "Press <ENTER> to continue once the schema upgrade is complete."
+ echo -e "\033[1mNow, the frontend will launch to update the schema for any plugins.\033[0m"
+ echo -e "\033[1mOnce the this is done, please exit the frontend.\033[0m"
+ pause 'Press <ENTER> to continue...'
+ xterm -e mythfrontend
+ echo "Performing LinHES specific schema updates."
+ /usr/LH/bin/update_schema_021_to_022.sh
fi
-echo -e "\033[1mNow, the frontend will launch to update the schema for any plugins.\033[0m"
-echo -e "\033[1mOnce the this is done, please exit the frontend.\033[0m"
-pause 'Press <ENTER> to continue...'
-xterm -e mythfrontend
-echo "Performing LinHES specific schema updates."
-/usr/LH/bin/update_schema_021_to_022.sh
echo "All done!"
echo -e "\033[5mThanks for choosing LinHES!\033[0m"
pause "Press <ENTER> to reboot."