Skip to content

Instantly share code, notes, and snippets.

@natewalck
Last active December 12, 2015 08:59
Show Gist options
  • Save natewalck/4747961 to your computer and use it in GitHub Desktop.
Save natewalck/4747961 to your computer and use it in GitHub Desktop.
luggage post part 1
#Step 3: Create necessary directories
sudo mkdir "/Applications/LabStats"
sudo mkdir "/Library/Application Support/LabStats"
#Step 4: Copy files to correct location
sudo cp -r "$1/Contents/Executable/" "/Applications/LabStats"
sudo cp -r "$1/Contents/Bundles/" "/Applications/LabStats"
sudo cp "$1/Contents/Launch Daemon/LabStats.plist" "/Library/LaunchDaemons"
sudo cp "$1/Contents/Launch Agent/LabStats.plist" "/Library/LaunchAgents"
sudo cp "$1/host.txt" "/Library/Application Support/LabStats"
#Step 5: Set Permissions
sudo chmod 644 /Library/LaunchAgents/LabStats.plist
sudo chmod 644 /Library/LaunchDaemons/LabStats.plist
sudo chmod -R 755 /Applications/LabStats
sudo chmod 755 "/Library/Application Support/LabStats"
sudo chmod -R 644 "/Library/Application Support/LabStats/*"
sudo chmod +x /Applications/LabStats/updater.sh
sudo chmod -R +x /Applications/LabStats/LabStatsUserSpace.app/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment