#!/bin/bash
dir=$(pwd)
echo $dir
cd /Library/DesktopCentral_Agent/uninstall
sudo ./uninstall.sh
cd "$dir"
sudo cp DesktopCentral_MacAgent.pkg /tmp
sudo cp serverinfo.plist /tmp
cd /tmp
sudo installer -pkg DesktopCentral_MacAgent.pkg -target / &
