#!/bin/sh
# reorg, Boone, ??/??/??
# Reorganize BRS databases for performance
#
# Modifications:
# ??/??/?? Boone      Initial coding
# 01/04/08 Boone      Don't recall why chown/chmod were used from
#                     /usr/local/bin on the Sun, but there's no need to
#                     do so on Linux
# 03/24/09 Boone      Modified for .deb packaging in fai/cf install
#                     scenario
# End Modifications

	exec 2>&1 > logs/reorg.`perl -e 'print time;'`
	/usr/local/brs/Bin/brsload LSVN -reorg all
	/usr/local/brs/Bin/brsload LSVP -reorg all
	chown brs:brs /matrix/data/brs/Databases/LSVN/*
	chmod 664 /matrix/data/brs/Databases/LSVN/*
	chown brs:brs /matrix/data/brs/Databases/LSVP/*
	chmod 664 /matrix/data/brs/Databases/LSVP/*
