Git Product home page Git Product logo

adminscripts's Issues

download-logicprox-content downloads numerous duplicates

In investigating why the list generated by download-logicprox-content.py list contained 850 items but download-logicprox-content.py download downloaded 846 items, I noticed that a number of items were actually duplicates. Using TextWrangler and a captured version of the list, I eliminated the duplicate lines, which reduced it to 357 packages. Some packages were downloaded as many as 9 times. The duplicates all appear to come from the Alchemy Sound Libraries.

Chrome 75 changes the path to the KeystoneRegistration.framework

The correct path is now /Applications/Google Chrome.app/Contents/Frameworks/Google Chrome Framework.framework/Frameworks/KeystoneRegistration.framework.

I don't know python as well, but I was able to figure out that I needed to change the keystone_registration_framework_path() subroutine to the following:

def keystone_registration_framework_path():
    """Returns KeystoneRegistration.framework path"""
    keystone_registration = os.path.join(chrome_path, 'Contents/Frameworks/Google Chrome Framework.framework/Frameworks/KeystoneRegistration.framework')
    return keystone_registration

I don't know enough, yet, to figure out how to make it work for both versions earlier than 75 and version 75 or later.

Could you add a license to your repo?

My organization would like to use and modify some of your scripts, but the absence of a license prevents us from doing so. Could you add one?

Thank you!

Quicker way to remove many deprecated items

Found out a way to remove all deprecated items at once:

"$REPOUTIL" --remove-products="${deprecatedProductIDs[@]}" "$1"

Removes all deprecated items from the selected branch and rebuilds catalogs only once.

Chrome 80 - install.py no longer exists

The chrome-enable-autoupdates.py script has started failing with version 80. It seems that the install.py file is no longer provided. Not sure if that's something that can be addressed.

install_script = os.path.join(keystone_registration_framework_path(), 'Resources/install.py')

"Error: Keystone nuke failed" in chrome-disable-autoupdates.py

When running the chrome-disable-autoupdates.py script on a Mac with the Google keystone agent installed and removeKeystone set to True, I get the following:

$ sudo python chrome-disable-autoupdates.py 
Error: KeystoneRegistration.framework not found
Error: Keystone nuke failed

This is with Chrome 55 installed and configured for "updates for all users."

Here's the location/version of the GoogleSoftwareUpdate bundle:

$ defaults read /Library/Google/GoogleSoftwareUpdate/GoogleSoftwareUpdate.bundle/Contents/Info CFBundleVersion
1.2.6.1370

Any advice?

Permission denied: '/Library/Managed Installs/ConditionalItems.plist'

I have set update_munki_conditional_items to True. I noticed that the file /Library/Managed Installs/ConditionalItems.plistwas not created after running managedsoftwareupdate. The same does happen (or not) when running the GUI.

I ran the script manually and got this error.

Traceback (most recent call last):
  File "/usr/local/munki/conditions/check-10.13-highsierra-compatibility.py", line 335, in <module>
    sys.exit(main())
  File "/usr/local/munki/conditions/check-10.13-highsierra-compatibility.py", line 326, in main
    append_conditional_items(high_sierra_supported_dict)
  File "/usr/local/munki/conditions/check-10.13-highsierra-compatibility.py", line 302, in append_conditional_items
    plistlib.writePlist(output_dict, current_conditional_items_path)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plistlib.py", line 90, in writePlist
    pathOrFile = open(pathOrFile, "w")
IOError: [Errno 13] Permission denied: '/Library/Managed Installs/ConditionalItems.plist'

Running the same with sudo creates the file. Whats wrong?

Permissions look correct:

-rwxr-xr-x  1 root  wheel  10389 27 Jul 15:37 check-10.13-highsierra-compatibility.py

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.