#!/bin/sh
##############################################################################
#
#	Usage: 	Intended to be invoked as a postdeployment script 
#           of a flash archive install process.
#           Erases all CCR repository values
#           by truncating *privileged.properties files
#
#	Copyright (C)2004, Sun Microsystems Inc.
#	All rights reserved.
#
##############################################################################

eraseRepository() {
	# These two files are part of package, but have 0 len on install
	privPath="${FLASH_ROOT}/var/cc-ccr/privileged.properties"
	nonprivPath="${FLASH_ROOT}/var/cc-ccr/nonprivileged.properties"
	
	if [ -f ${privPath} ]
	then
	   echo "\c" > ${privPath}
	fi
	
	if [ -f ${nonprivPath} ]
	then
	   echo "\c" > ${nonprivPath}
	fi
}

eraseRepository

exit 0
