下記の情報はお役に立ちますか?   
ご意見をお寄せいただきありがとうございます。
弊社提供のスクリプトにより、Webroot ビジネスエンドポイントプロテクションMac OS エージェント最新版にアップグレード(更新)していただく方法について

お客様がお使いのMac OS対応端末に、Webroot ビジネスエンドポイントエージェント最新バージョンの更新を行っていただく際にお使いいただけるスクリプトを、下記にご提供いたします。
 
重要: 本スクリプトにはShell スクリプトが含まれており、変更することはできません。また、このスクリプトはスクリプトをお使いになった経験がある方のみにご使用いただき、実装環境で使用するまでに確認テストを行ってからお使いください。弊社サポートではスクリプトの機能に関するご質問には対応いたしませんので、ご理解いただけますようお願いいたします。 

英語版はこちら

#!/bin/sh
#set -x
#Set Keycode for Clients

KEY=1111-1111-1111-1111-1111
#Proxy Settings
#host=X
#port=Y
#user=Z
#password=ZZ

 
sleep 2
 
#Get the OS version. We need to execute differently on Catalina than on <Catalina
OS_Version=`sw_vers -productVersion`
echo OS_Version is $OS_Version
OS_Version_short=$(echo $OS_Version | cut -c1-5)
echo $OS_Version_short

clear
 
#Download WSA mac client
if [[ (${OS_Version_short} == 10.15)]] || [[  (${OS_Version_short} == 10.16 ) || (${OS_Version_short} == 11.0) ]];
 
then
   cd /tmp; curl -O https://mac.webrootmultiplatform.com/production/wsa-mac/10.15/9.1.3.103/WSAMACSME.dmg
   echo "Please wait while file is downloaded and mounted"
   wait 15
 
   #Mount the DMG file
   echo "beginning DMG mount"
   hdiutil attach -nobrowse /tmp/wsamacsme.dmg
   echo "Mounted DMG"
 
   #Before installing, we need to make sure we remove the InstallHelperTool
   sudo rm -f /Library/PrivilegedHelperTools/com.webroot.InstallerHelperTool
 
   #On Catalina, we run the installer that is on the DMG rather than copying to /Applications.
   #For new install, we need to keep the keycode and proxy here whereas upgrading (over existing installation) does not need the keycode

   sudo /Volumes/Webroot\ SecureAnywhere/Webroot\ SecureAnywhere.app/Contents/MacOS/Installer -keycode=$KEY install -language=ja -silent
  
   #Use this command if you are running a proxy.
   #sudo /Volumes/Webroot\ SecureAnywhere/Webroot\ SecureAnywhere.app/Contents/MacOS/Installer -keycode=$KEY install -language=ja -silent-proxy_auth=auth_basic_1 -proxy_auth=auth_any_0 -proxy_host=$host -proxy_port=$port -proxy_user=$user -proxy_pass=$password


   wait 10
    
   #Unmount the DMG.
   echo "unmounting DMG"
   diskutil list | grep Webroot\ SecureAnywhere | diskutil unmount /Volumes/Webroot\ SecureAnywhere
   echo "Unmounting DMG complete"
 
   wait 30
   
   #Remove the DMG
   echo "removing downloading DMG from tmp"
   rm -rf /tmp/wsamacsme.dmg
   echo "DMG deletion complete"
 
   echo "Script complete on Catalina"
 
else
   echo "Operating System is NOT Catalina, downloading 9.0"
   cd /tmp; curl -O http://anywhere.webrootcloudav.com/zerol/wsamacsme.dmg
 
   echo "Please wait while file is downloaded and mounted"
   wait 15
 
   #Mount the DMG file
   echo "beginning DMG mount"
   hdiutil attach -nobrowse /tmp/wsamacsme.dmg
   echo "Mounted DMG"
 
   #copy app from dmg to applications. On <Catalina, we copy the .app from the DMG to /Applications and then run the Install command. It's different from the Catalina implementation above
   echo "Beginning application copy"
   sudo cp -R /Volumes/Webroot\ SecureAnywhere/Webroot\ SecureAnywhere.app /Applications/
   wait 10
   echo "Copy and wait complete"
 
   #Install the application silently
   echo "Begnning application installation"
 
   #Install when you don't have a proxy in place.
   sudo "/Applications/Webroot SecureAnywhere.app/Contents/MacOS/Webroot SecureAnywhere" install -keycode=$KEY -language=ja -silent
 
   #If running a proxy unhash this command
   #sudo "/Applications/Webroot SecureAnywhere.app/Contents/MacOS/Webroot SecureAnywhere" install -keycode=$KEY -language=ja –silent -proxy_auth=auth_basic_1 -proxy_auth=auth_any_0 -proxy_host=$host -proxy_port=$port -proxy_user=$user -proxy_pass=$password

   echo "app Installation complete"
 
   #Unmount the DMG.
   echo "unmounting DMG"
   diskutil list | grep Webroot\ SecureAnywhere | diskutil unmount /Volumes/Webroot\ SecureAnywhere
   echo "Unmounting DMG complete"
 
   wait 30
 
   #Remove the DMG
   echo "removing downloading DMG from tmp"
   rm -rf /tmp/wsamacsme.dmg
   echo "DMG deletion complete"
 
   echo "Script complete on <Catalina "
 
fi
 
echo "Script complete overall "
 
 

Powered by noHold, Inc. U.S. Patent No. 10,659,398