summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/linhes-scripts/upgrade_to_0.22.sh
diff options
context:
space:
mode:
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."