diff options
Diffstat (limited to 'abs/core-testing/live-installer/restore_km_db_chroot.sh')
-rw-r--r-- | abs/core-testing/live-installer/restore_km_db_chroot.sh | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/abs/core-testing/live-installer/restore_km_db_chroot.sh b/abs/core-testing/live-installer/restore_km_db_chroot.sh deleted file mode 100644 index 9467ffd..0000000 --- a/abs/core-testing/live-installer/restore_km_db_chroot.sh +++ /dev/null @@ -1,53 +0,0 @@ -#!/bin/bash -. /etc/profile -. /etc/systemconfig -set -x -#myhost=`cat /etc/hostname` -myhost=$hostname -hostname $myhost -mount -t proc none /proc -DBFILE=$1 - -if [ $SystemType = "Master_backend" -o $SystemType = "Standalone" ] - then - #restore database - pacman --noconfirm -Sf mysql - status=1 - mysqlstatus=1 - while [ ! $status = 0 ] - do - /etc/rc.d/mysqld stop - sleep 1 - /etc/rc.d/mysqld start - mysqlstatus=$? - if [ $mysqlstatus = 0 ] - then - mysql -e "show databases;" - showstatus=$? - if [ $showstatus = 0 ] - then - #load database - pacman --noconfirm -R mythdb-initial - pacman --noconfirm -S mythdb-initial - echo "restoring old database" - gunzip -c /myth/backup/mythconverg.sql.gz > /myth/backup/mythconverg.sql - mysql mythconverg < /myth/backup/mythconverg.sql - - - if [ -d /var/lib/mysql/mythconverg ] - then - status=0 - fi - fi - fi - done - rm -f /myth/backup/mythconverg.sql - else - exit 0 - fi - -#/etc/rc.d/mysqld stop -#umount /proc - - - |