欢迎各位兄弟 发布技术文章

这里的技术是共享的

You are here

自己亲自做的 安装 零信任 vpn 有大用 有大大用 有大大大用

ling_xin_ren_install_zhong

#!/bin/bash    
#    
sudo killall -9  "aTrust"    
sudo rm -Rf "/Applications/aTrust.app/"    
/bin/mkdir -p "${HOME}/Desktop/downloadfromjamf"    
cd  "${HOME}/Desktop/downloadfromjamf"    
sudo chmod -R 777 "${HOME}/Desktop/downloadfromjamf/"    
/usr/bin/curl -o "./aTrustInstaller.pkg.zip"  http://aaaa.luxshare-ict.com/util/software/aTrustInstaller.pkg.zip    
unzip  -o  "./aTrustInstaller.pkg.zip"    
sudo installer -pkg "./aTrustInstaller.pkg" -target /    

   
(/usr/bin/osascript -e  "display dialog \"已为你浏览器中打开VPN的SOP,已安装零信任VPN,如果出现问题,请重启电脑!\" buttons {\"OK\"}   default button \"OK\" ")

   
#把文件夹权限置为 777  ,让所有人可以删    
sudo chmod -R 777 "${HOME}/Desktop/downloadfromjamf/"    

   
#cd ../    
#rm -Rf "${HOME}/Desktop/downloadfromjamf"    
exit 0    


普通分类: