This script:

  • Mounts fs2
  • Copies the update pkg
  • Installs the update
  • Unmounts fs2

mkdir /Volumes/fs2/
mkdir /tmp/update/
mount_smbfs //puppet:puppet@fs2/installs/ /Volumes/fs2/

cp -r /Volumes/fs2/software/MacOS/OSX\ Updates/InstallOSX_10.10.5.pkg /tmp/update/

installer -allowUntrusted -pkg /tmp/update/InstallOSX_10.10.5.pkg -target /

rm -rf /tmp/update/
umount /Volumes/fs2

 

Simply reboot the computer and the update will be applied. This could take 20-45 minutes.