8/18/2023 0 Comments Atom python for macVolumes/distribution/pkgs/Applications/Microsoft/MicrosoftTeams/ So, pkgcheck is well worth running against your Munki Repo or Jamf Distribution Point (if you have a JCDS, you’ll need to replicate locally first).īelow is the output for Microsoft Teams 57: MSTeams-1.7-434557 General guidance:Īrmin Briegel, aka scriptingosx, has a great script called pkgcheck which can traverse a directory looking for packages (of various formats, and even packages in DMG’s) and will advise if a packages preinstall or postinstall starts with a shebang of #!/usr/bin/python (amongst many other things). AutoPkgĬheck your recipes and overrides for occurrences to /usr/bin/python or /usr/bin/env python. Munkiĭownload the “all” catalog (or each catalog separately), and check. I’d once again recommend running Jamf Migrator against your Jamf Pro instance to download any scripts and Extension Attributes to check. But to generalise, you’ll want to check all your scripts and packages for occurrences of python -c, /usr/bin/python or /usr/bin/env python.īelow is some more specific guidance: Jamf Pro Well, depends on what systems you’re using. It really depends on how the Python 2 was being invoked, but directly you’ll likely see something like: /usr/bin/python: bad interpreter: No such file or directoryĪnds maybe: /usr/bin/python: command not found So, now what? This is the same as calling #!/usr/bin/env python, and as such as the same caveats. So, these will fail as they will likely not be able find a file or if they do find a file, it could be Python 3. When things are calling #!/usr/bin/env python, they are telling the OS to traverse the directories shown in $PATH for a file named “python” and to then use that. These changes are in part why Python 2 is still being used, despite Python 3 having been released on December 3, 2008. Python 3 includes several changes which mean that backwards compatibility with Python 2 isn’t possible.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |