#!/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 install the software
# Application Home Path:   /Applications/Tornado Online Backup
# Scheduler Service Path:  /Library/StartupItems/TornadoOnlineBackup
# AutoUpdate Service Path: /Library/StartupItems/TornadoOnlineBackup-AutoUpdate

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

"${PKG_HOME}/Contents/Resources/custom-install" "${PKG_HOME}" "${TIMESTAMP_LOG}" >> "${INSTALL_LOG}"