#!/bin/bash
# Last Modified: 2008-26-06 02:56:33
# Tornado Online Backup Version: 5.2.6.0 (Build:8)

# $1 is the PKG path
PKG_HOME=$1

# Use customized procedure to cleanup before installing the software
# The "/Applications/Tornado Online Backup" path and /Library/StartupItems path
# must be cleaned up before installation

TIMESTAMP_LOG=`date "+%y%m%d%H%M%S"`
CLEANUP_LOG="/Applications/obm.pkg-cleanup-${TIMESTAMP_LOG}.log"

"${PKG_HOME}/Contents/Resources/custom-cleanup" "${PKG_HOME}" "${TIMESTAMP_LOG}" >> "${CLEANUP_LOG}"