##############################################################################################################
##    Script Name    : restorePrepackResource.sh                                                            ##
##    Author         : Leon Lin                                                                             ##
##    Created on     : 12/24/2013                                                                           ##
##    Usage          : ./restorePrepackResource.sh 			                                    ##
##    Purpose        : Resotre sepcific resource type files that prepack modified                           ##
##                         					                                            ##
##                                                                                                          ##
##############################################################################################################

#!/bin/bash
PREPACK_REPLACED_FILE="opt/tandbergtv/watchpoint/tomcat/webapps/filemanager/WEB-INF/classes/com/tandbergtv/workflow/webservice/filesubsystem/messagehandler/FTPDeleteMessageHandler.class
		       opt/tandbergtv/watchpoint/tomcat/webapps/filemanager/WEB-INF/classes/com/tandbergtv/workflow/webservice/filesubsystem/FTPClientServiceEnhancement.class"


tar -xvf $backupTarFilePath -C / $PREPACK_REPLACED_FILE 

if [ $? == "1" ]; then
	echo "restore file files failed."
	exit 1
else
	echo "restore prepack files completed."
fi


