Hi all, first time caller, long time listener and fan of the discussion boards.
I have a script that I want to mount the CapserShare volume, copy a folder to the tmp folder, execute the pkg file, then remove the copied folder, then unmounts the share. Here's what I've cobbled together thus far:
```
!if ! [ -d "/Volumes/CasperShare" ] ; then
mkdir "/Volumes/CasperShare" ;
mount_afp "afp://username:password@serveripaddress/CasperShare" "/Volumes/CasperShare"
cp -R /Volumes/CasperShare/Packages/AgentInstaller_Mac64 /tmp/
sudo installer -pkg /tmp/AgentInstaller_Mac64/AgentInstall.pkg -target /
rm -R /tmp/AgentInstaller_Mac64/
diskutil unmount /Volumes/CasperShare
fi``
The pkg file has to be ran via the terminal, in order for it to install correctly. The reason for the desire to get to and copy the folder is so I can easily move updated files into the "AgentInstaller_Mac64" folder, when our Info Sec team creates an updated package (which includes other files.
I was a long time Desktop jockey, and know Casper Remote and Recon pretty well, but now I'm a Mac Admin and I'm in the process of learning about all this, and loving it.
Any thoughts and insight are welcomed, and appreciated.
Many thanks!