diff options
author | James Meyer <james.meyer@operamail.com> | 2009-01-04 18:49:09 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2009-01-04 18:49:09 (GMT) |
commit | 29e945b91760568116a21e0076fae046b33a2663 (patch) | |
tree | 5623cb38e621cb4be85785fca6ec477ef9e7e83f /abs/core-testing/LinHES-config/restore_km_db_chroot.sh | |
parent | 3cc7a26ef6ce5928401162cff95e8a860c8daa36 (diff) | |
download | linhes_pkgbuild-29e945b91760568116a21e0076fae046b33a2663.zip linhes_pkgbuild-29e945b91760568116a21e0076fae046b33a2663.tar.gz linhes_pkgbuild-29e945b91760568116a21e0076fae046b33a2663.tar.bz2 |
Add more useful debugging output.
Cleanup some error messages.
introduce cp_and_log function.
introduce kill_dhcp_chroot
fix umounting of /new_boot
fix copying of mdadm.conf
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.sh | 8 |
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 |