#!/bin/bash
# Mindtime Online Backup Pro Manager Version: 6.13.4.0

# $1 is the PKG path
PKG_HOME=$1

# Use customized procedure to cleanup before installing the software
# The "/Applications/Mindtime Pro 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}"