Commit Graph

476 Commits

Author SHA1 Message Date
Greg Neagle
7ee04f1435 When a Launchd job should not be cleaned up when managedsoftwareupdate exits, do not use a Munki-managed temp directory; use a temp direcotry created under /private/tmp 2025-11-10 10:50:07 -08:00
Greg Neagle
069e7e45da Better warning message if a proposed upload subdirectory is empty 2025-11-10 10:48:14 -08:00
Greg Neagle
b08b5800bd When using libedit/readline to insert a prompt and default response, be more careful to ensure the readline structures are initialized before proceeding 2025-11-10 10:47:12 -08:00
Alex Jones
7c4a87670e Fix bug in installhelper logic (#1284)
Don't unload all Munki launchd jobs if appusage jobs are not currently loaded.
2025-10-27 13:24:55 -07:00
Greg Neagle
61809bf452 Since we've decided we're never going to support installing Apple softwareupdates in Munki 7, simplify some code 2025-10-23 11:54:36 -07:00
Greg Neagle
3864988b16 Since we've decided we're never going to support installing Apple softwareupdates in Munki 7, simplify some logic 2025-10-23 11:53:48 -07:00
Greg Neagle
03993beceb Improved logic for using stored etag or last-modified headers to avoid re-downloading resources 2025-10-23 11:52:51 -07:00
Stephen Boyle
8e5848d9f8 Update fetch.swift (#1281)
modify etag / last-modified logic for http request: last-modified will be used if etag is not present.
2025-10-23 11:22:18 -07:00
Greg Neagle
3a8c03b8bb Address complier warning with simplified logic 2025-10-22 12:07:33 -07:00
Greg Neagle
f02a2959d8 Fix broken test 2025-10-22 12:06:55 -07:00
Greg Neagle
dba4597090 Add new test for changes in fileutils pathIsDirectory() 2025-10-22 12:06:24 -07:00
Greg Neagle
a3b0323110 Support symlinks for repo file: URLs 2025-10-22 11:22:35 -07:00
Greg Neagle
519c1922aa Bump version for future release 2025-10-22 11:21:02 -07:00
Greg Neagle
b862182f5d Explictly add a version_comparison_key of CFBundleVersion to an installs item if the item does not have a CFBundleShortVersionString. Addresses #1277 2025-10-15 09:16:24 -07:00
Greg Neagle
e6f49cf6e7 Fix an issue with the recording of 'ItemsToInstall' and
'ItemsToRemove' in ManagedInstallReport.plist. Addresses #1275
2025-10-13 17:33:27 -05:00
Greg Neagle
3e365ea241 Fix for issue when copying items from a dmg that are not at the dmg root 2025-10-09 20:23:37 -07:00
Greg Neagle
64da9216da Fix for unified logging subsystem naming 2025-10-09 20:22:48 -07:00
Greg Neagle
7ede11a43d swiftlint fix 2025-10-09 20:21:45 -07:00
Greg Neagle
07befda84a Address a compiler warning (no functional change) 2025-10-09 08:22:45 -07:00
Greg Neagle
8d741b5f96 Better handling of d_type field from readdir results, fixing an issue with directory enumeration on macFUSE_sshfs filesystems (and likely other FUSE filesystems. Addresses #1273, which affected makecatalogs (and likely affected manifestutil) 2025-10-09 08:18:19 -07:00
Greg Neagle
068f12ff70 Fix for makepkginfo/munkiimport --blocking-application. Addresses #1274 2025-10-08 08:27:04 -07:00
Greg Neagle
9d6cf5afba Bump version for next release 2025-10-08 08:26:00 -07:00
Greg Neagle
3ab392727c Fix for swiftformat --lint issue. 2025-10-01 14:23:18 +02:00
Greg Neagle
48ccd1121c Initial commit of repocheck 2025-10-01 10:29:47 +02:00
Greg Neagle
7d5b07c33b Display both stdout and stderr when running embedded scripts; capture both stdout and stderr and add to log whena script exits non-zero. Matchs previous (Munki 6.x Python) behavior. 2025-09-26 10:47:37 -07:00
Greg Neagle
9941b0cd39 Fix for makepkginfo processing receipts for payload-free packages. Addresses an issue where empty dicts were added to the receipts array 2025-09-25 10:53:23 -07:00
Greg Neagle
d65b1d1b70 Fix processing of LocalOnlyManifest. Addresses #1270 2025-09-25 09:03:50 -07:00
Greg Neagle
f9dcb96be9 swiftformat re-format 2025-09-24 13:41:45 -07:00
Wesley Whetstone
a7cafd0204 add AssociatedBundleIdentifiers to helper launchds (#1269)
Authored-by: Wesley Whetstone <wesw@stripe.com>
2025-09-24 13:38:39 -07:00
Greg Neagle
93b9c8586c Remove MWA2APIRepo code; moving to another repo. Fix for RepoProtocol definition for consistency 2025-09-23 15:05:10 -07:00
Greg Neagle
e498022578 Addresses #1267 where removals might consider/process the same item multiple times 2025-09-19 13:20:54 -07:00
Greg Neagle
c56cfa5244 Update help text for managedsoftwareupdate --auto 2025-09-18 15:42:42 -07:00
Greg Neagle
fd017d1824 Move Swift runtime library needed on macOS < 12 to /usr/local/munki/lib (previously installed at /usr/local/lib) 2025-09-11 14:38:51 -07:00
Greg Neagle
b19e9e748e Move 'internal' tools to /usr/local/munki/libexec 2025-09-11 14:21:13 -07:00
Greg Neagle
2a4f2ffbec Changes to get rid of supervisor 2025-09-10 15:51:19 -07:00
Greg Neagle
5748e687b3 Fix for 'manifestutil version' to print full version number 2025-09-05 14:46:32 -07:00
Greg Neagle
cfd481f278 Explictly set RPATHs for command line tools so libswift_Concurrency.dylib is found on pre-macOS 12 2025-09-04 16:45:45 -07:00
Greg Neagle
bad5e1ed75 Don't inject com.apple.security.get-task-allow entitlement when building for release, so code can be notarized 2025-09-04 13:47:07 -07:00
Elliot Jordan
41e6d38cc5 Spelling fixes for Munki 7 branch (#1263)
* Fix SidebarViewController.swift file name

* Fix spelling in comments

* Fix spelling in strings and output

* Fix spelling in variables and key names

* One more pass at spelling fixes
2025-08-27 12:27:12 -07:00
Greg Neagle
395ab2a08d Fix forceLogoutNow logic 2025-08-25 14:02:29 -07:00
Greg Neagle
b66ef898cb Fix for forced logout warning alerts not appearing 2025-08-25 10:03:00 -07:00
Greg Neagle
a49189d39a Address unhandled objc error when runCLIAsync can't launch a script due to a missing script interpreter 2025-08-25 09:29:45 -07:00
Greg Neagle
475b436775 Update Swift code to match chnage in Python code in commit a04b455 and commit 522ee66 2025-08-15 10:50:32 -07:00
Greg Neagle
2f4c1c3c39 Simplify the posix_spawn wrapper 2025-07-28 07:43:52 -05:00
Greg Neagle
f112ce8b7c Fix for running CLI editor during interactive munkiimport 2025-07-27 22:47:15 -05:00
Greg Neagle
ddded786b3 Fix for installer_choices_xml for pkg installs 2025-07-26 09:58:29 -07:00
Greg Neagle
8fd09d9369 Use a different method to determine if a script is executable; previous method did not work well with sudo 2025-07-11 17:23:28 -07:00
Greg Neagle
9d6ad57d0d Improve error messages when custom admin scripts fail to run 2025-07-11 17:22:00 -07:00
Greg Neagle
6fe6bf9425 More useful error message when an admin-provided conditions script fails 2025-07-11 09:48:06 -07:00
Greg Neagle
26562eb764 Don't prompt to open pkginfo in an editor if the editor preference is an empty string. Matches Munki 6 behavior 2025-07-10 14:17:54 -07:00