mirror of
https://github.com/munki/munki.git
synced 2026-01-05 22:20:00 -06:00
remove --ondemant_script
:(
This commit is contained in:
@@ -460,13 +460,6 @@ def main():
|
||||
script_options = optparse.OptionGroup(
|
||||
p, 'Script Options',
|
||||
'All scripts are read and embedded into the pkginfo.')
|
||||
script_options.add_option(
|
||||
'--ondemand_script', '--ondemand-script',
|
||||
metavar='SCRIPT_PATH',
|
||||
help=('Path to an OnDemand script to be '
|
||||
'run as root. '
|
||||
'Always removed one finished. There are no receipts.')
|
||||
)
|
||||
script_options.add_option(
|
||||
'--installcheck_script', '--installcheck-script',
|
||||
metavar='SCRIPT_PATH',
|
||||
@@ -795,7 +788,6 @@ def main():
|
||||
not options.file and
|
||||
not options.nopkg and
|
||||
not options.installer_environment and
|
||||
not options.ondemand_script and
|
||||
not options.installcheck_script and
|
||||
not options.uninstallcheck_script and
|
||||
not options.preinstall_script and
|
||||
@@ -1042,10 +1034,6 @@ def main():
|
||||
# remove minimum_os_version as we don't include it for --file only
|
||||
catinfo.pop('minimum_os_version')
|
||||
|
||||
if options.ondemand_script:
|
||||
scriptstring = readfile(options.ondemand_script)
|
||||
if scriptstring:
|
||||
catinfo['ondemand_script'] = scriptstring
|
||||
if options.installcheck_script:
|
||||
scriptstring = readfile(options.installcheck_script)
|
||||
if scriptstring:
|
||||
|
||||
Reference in New Issue
Block a user