#!/bin/bash
# Server Backup Manager Version: 5.5.7.0

# $1 is the PKG path
PKG_HOME=$1

# Use customized procedure to install the software
# Application Home Path:   /Applications/Server Backup Manager
# Scheduler Service Path:  /Library/StartupItems/ServerBackupManager
# AutoUpdate Service Path: /Library/StartupItems/ServerBackupManager-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}"