mirror of
https://github.com/munki/munki.git
synced 2026-01-26 17:09:30 -06:00
Merge branch 'cli' of https://code.google.com/r/davvid-munki-cli
This commit is contained in:
@@ -521,10 +521,16 @@ def main():
|
||||
p.add_option('--nointeractive', '-n', action='store_true',
|
||||
help="""No interactive prompts. May cause a failure
|
||||
if repo path is unavailable.""")
|
||||
p.add_option('--unattended-install', action='store_true',
|
||||
help="""Specify 'unattended_install' for the installer item.""")
|
||||
p.add_option('--catalog', default=[], action='append',
|
||||
help="""Specify target catalogs. (default: prompt)""")
|
||||
help="""Specify target catalogs.""")
|
||||
p.add_option('--min-os-ver', default=None, metavar='VERSION',
|
||||
help="""Minimum OS version for the installer item.""")
|
||||
p.add_option('--max-os-ver', default=None, metavar='VERSION',
|
||||
help="""Maximum OS version for the installer item.""")
|
||||
p.add_option('--version', '-V', action='store_true',
|
||||
help='Print the version of the munki tools and exit.')
|
||||
help='Print the version of the munki tools and exit.')
|
||||
p.add_option('--verbose', '-v', action='store_true',
|
||||
help='Print more output.')
|
||||
|
||||
@@ -704,7 +710,17 @@ def main():
|
||||
except RepoCopyError, errmsg:
|
||||
print >> sys.stderr, errmsg
|
||||
cleanupAndExit(-1)
|
||||
|
||||
|
||||
if options.unattended_install:
|
||||
pkginfo['unattended_install'] = True
|
||||
|
||||
# default OS versions
|
||||
if options.min_os_ver:
|
||||
pkginfo['minimum_os_version'] = options.min_os_ver
|
||||
|
||||
if options.max_os_ver:
|
||||
pkginfo['maximum_os_version'] = options.max_os_ver
|
||||
|
||||
# adjust the installer_item_location to match the actual location and name
|
||||
pkginfo['installer_item_location'] = uploaded_pkgpath
|
||||
|
||||
|
||||
Reference in New Issue
Block a user