summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/linhes-scripts/upgrade_to_0.22.sh
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/upgrade_to_0.22.sh
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/upgrade_to_0.22.sh')
-rw-r--r--abs/core-testing/linhes-scripts/upgrade_to_0.22.sh19
1 files changed, 11 insertions, 8 deletions
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."