Created
April 12, 2016 00:53
-
-
Save tempusthales/b2c1e9b748750482a78bd760ca7a7bc4 to your computer and use it in GitHub Desktop.
Install Sophos and restart SophosAutoUpdate to force the Sophos AutoUpdate process
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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