#!/bin/sh
# Copyright © 2022 Musarubra US LLC . 

#sudo touch /private/tmp/EpoDeployedMSMInstallation >> /dev/null 2>&1
#sudo chmod 700 /private/tmp/EpoDeployedMSMInstallation >> /dev/null 2>&1
#sudo chown root:wheel /private/tmp/EpoDeployedMSMInstallation >> /dev/null 2>&1
#tar -xvzf __VSMAC_PKG_NAME__.tar.gz >> /dev/null 2>&1
#sudo installer -pkg McpDistribution.pkg -target "/" >> /dev/null 2>&1


# Client installer
command="installer -verbose -dumplog -pkg SCDistribution.pkg -target / > /tmp/mcp_install.log 2>&1"
eval $command 
ret_code=$?


if [ -e /private/var/tmp/ProductConfig ]
then
    rm -rf /private/var/tmp/ProductConfig >> /dev/null 2>&1
fi

exit $ret_code
