-
-
Save TeamAssetSonar/149188cb67bf790e567bd475663af88f to your computer and use it in GitHub Desktop.
Intune PKG deployment script
This file contains 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 | |
curl -L -o /Users/Shared/ocsinv.adm "https://drive.google.com/uc?export=download&id=add_id_here" | |
curl -L -o /Users/Shared/cacert.pem "https://drive.google.com/uc?export=download&id=add_id_here" | |
curl -L -o /Users/Shared/next_timefile "https://drive.google.com/uc?export=download&id=add_id_here" | |
curl -L -o /Users/Shared/ocsinventory-agent.cfg "https://drive.google.com/uc?export=download&id=add_id_here" | |
curl -L -o /Users/Shared/modules.conf "https://drive.google.com/uc?export=download&id=add_id_here" | |
curl -L -o /Users/Shared/org.ocsng.agent.plist "https://drive.google.com/uc?export=download&id=add_id_here" | |
sudo cp /Users/Shared/modules.conf /Users/Shared/ocsinventory-agent.cfg /etc/ocsinventory-agent | |
sudo mkdir /private/var/lib/ocsinventory-agent/https:__itam.assetsonar.com_ocsinventory | |
sudo cp /Users/Shared/cacert.pem /Users/Shared/next_timefile /Users/Shared/ocsinv.adm /private/var/lib/ocsinventory-agent/https:__itam.assetsonar.com_ocsinventory/ | |
sudo cp /Users/Shared/org.ocsng.agent.plist /Library/LaunchDaemons | |
sudo launchctl load /Library/LaunchDaemons/org.ocsng.agent.plist | |
sudo launchctl start org.ocsng.agent | |
sudo touch /var/log/ocsng.log | |
cd /Applications/AssetSonarAgent.app/Contents/Resources | |
sudo ./ocsinventory-agent | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment