Skip to content

Instantly share code, notes, and snippets.

@tempusthales
Created April 12, 2016 00:53
Show Gist options
  • Save tempusthales/b2c1e9b748750482a78bd760ca7a7bc4 to your computer and use it in GitHub Desktop.
Save tempusthales/b2c1e9b748750482a78bd760ca7a7bc4 to your computer and use it in GitHub Desktop.
Install Sophos and restart SophosAutoUpdate to force the Sophos AutoUpdate process
#!/bin/bash
# Determine working directory
install_dir=`dirname $0`
# Install Sophos Anti-Virus
#
# Managed: $install_dir/"Sophos Installer.app/Contents/MacOS/tools/InstallationDeployer" --install
# Standalone: $install_dir/"Sophos Installer.app/Contents/MacOS/InstallationDeployer" --install
$install_dir/"Sophos Installer.app/Contents/MacOS/tools/InstallationDeployer" --install
# Restart SophosAutoUpdate to force the Sophos AutoUpdate process
# to read the settings stored in /Library/Sophos Anti-Virus/com.sophos.sau.plist
killall -HUP SophosAutoUpdate
# Cleanup
cd /
rm -rf /private/tmp/sophos_install
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment