Giter Site home page Giter Site logo

palantir / jamf-pro-scripts Goto Github PK

View Code? Open in Web Editor NEW
287.0 224.0 62.0 236 KB

A collection of scripts and extension attributes created for managing Mac workstations via Jamf Pro.

License: Apache License 2.0

Shell 100.00%
octo-correct-managed

jamf-pro-scripts's Issues

Reset Safari.sh is incomplete

I recently had issues with safari unsuccessfully importing firefox history and favorites. It thought those files were last used january 1st 4001. After googling I noticed this was a common issue. The lines that saved me were :

rm ~/Library/Preferences/com.apple.Safari.plistls #This one seems to be already present in your script
defaults delete com.apple.Safari

Those should be added to the Reset Safari.sh.
EDIT : source.

Reset Safari.sh does not clear last session

After running the Reset Safari script, the option to "Reopen All Windows from Last Session" persists, and successfully reopens tabs from the last session. This is on Safari 17.4, macOS 14.4.

image

Homebrew Casks - Outdated.sh: Error: $PWD must be set to run brew.

Thanks for contributing Homebrew Casks - Outdated.sh.

When running as-is in an elevated Terminal session on macOS 14.2.1 (23C71), I observed the following error:

# sh /Users/dan/Downloads/Homebrew\ Casks\ -\ Outdated.sh 
<result>shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission denied
Error: $PWD must be set to run brew.</result>

Changing Line 57 to the following seems to be working as expected:

brewOutdatedCask=$(/usr/bin/su \- "$loggedInUser" -c "'$brewPath' outdated --cask --quiet 2>&1")

# sh /Users/dan/Downloads/Homebrew\ Casks\ -\ Outdated.sh 
<result>Running `brew update --auto-update`...
==> Auto-updated Homebrew!
Updated 2 taps (homebrew/core and homebrew/cask).
==> New Formulae
scnlib
==> New Casks
insomnium

You have 3 outdated formulae installed.</result>

Recommended addition to file deletion

Suggest adding "/Library/Internet Plug-Ins/PepperFlashPlayer" to list of files to delete. Otherwise this doesn't remove the PPAPI version of Flash.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.