diff options
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 | 9 |
1 files changed, 4 insertions, 5 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 17ad113..7ff6faf 100644 --- a/abs/core-testing/LinHES-config/restore_km_db_chroot.sh +++ b/abs/core-testing/LinHES-config/restore_km_db_chroot.sh @@ -30,12 +30,11 @@ if [ $SystemType = "Master_backend" -o $SystemType = "Standalone" ] pacman --noconfirm -R mythdb-initial pacman --noconfirm -S mythdb-initial - if [ -f /myth/backup/mythconverg.sql.gz ] + if [ -f $DBFILE ] then echo "restoring old database" - gunzip -c /myth/backup/mythconverg.sql.gz > /myth/backup/mythconverg.sql - mysql mythconverg < /myth/backup/mythconverg.sql - + gunzip -c $DBFILE > /tmp/mythconverg.sql + mysql mythconverg < /tmp/mythconverg.sql else echo "Could not restore old database, mythconverg.sql is missing." touch /tmp/.upgrade_db_failed @@ -48,7 +47,7 @@ if [ $SystemType = "Master_backend" -o $SystemType = "Standalone" ] fi fi done - rm -f /myth/backup/mythconverg.sql + rm -f /tmp/mythconverg.sql else exit 0 fi |