summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/LinHES-config/restore_km_db_chroot.sh
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core-testing/LinHES-config/restore_km_db_chroot.sh')
-rw-r--r--abs/core-testing/LinHES-config/restore_km_db_chroot.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/abs/core-testing/LinHES-config/restore_km_db_chroot.sh b/abs/core-testing/LinHES-config/restore_km_db_chroot.sh
index 7ff6faf..71328f2 100644
--- a/abs/core-testing/LinHES-config/restore_km_db_chroot.sh
+++ b/abs/core-testing/LinHES-config/restore_km_db_chroot.sh
@@ -1,8 +1,8 @@
#!/bin/bash
. /etc/profile
. /etc/systemconfig
-set -x
-#myhost=`cat /etc/hostname`
+. $MV_ROOT/bin/install_functions.sh
+
myhost=$hostname
hostname $myhost
mount -t proc none /proc
@@ -35,6 +35,8 @@ if [ $SystemType = "Master_backend" -o $SystemType = "Standalone" ]
echo "restoring old database"
gunzip -c $DBFILE > /tmp/mythconverg.sql
mysql mythconverg < /tmp/mythconverg.sql
+ update_db_settings HostServiceMythWEB "1"
+ echo 'UseMythWEB="1"' >> /etc/systemconfig
else
echo "Could not restore old database, mythconverg.sql is missing."
touch /tmp/.upgrade_db_failed
@@ -52,7 +54,7 @@ if [ $SystemType = "Master_backend" -o $SystemType = "Standalone" ]
exit 0
fi
-#/etc/rc.d/mysqld stop
+/etc/rc.d/mysqld stop
#umount /proc