mirror of
https://github.com/munki/munki.git
synced 2026-04-23 21:40:25 -05:00
Updated copyright info for 2010; added cleanup of launchd launch paths for runtype = "installwithnologout" and runtype = "manualcheck".
git-svn-id: http://munki.googlecode.com/svn/trunk@418 a4e17f2e-e282-11dd-95e1-755cbddbdd66
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#!/usr/bin/python
|
||||
#
|
||||
# Copyright 2009 Greg Neagle.
|
||||
# Copyright 2009-2010 Greg Neagle.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
@@ -309,6 +309,11 @@ def main():
|
||||
if options.installwithnologout:
|
||||
# typically invoked by Managed Software Update.app
|
||||
# by user who decides not to logout
|
||||
launchdtriggerfile = \
|
||||
"/private/tmp/.com.googlecode.munki.managedinstall.launchd"
|
||||
if os.path.exists(launchdtriggerfile):
|
||||
# remove it so we aren't automatically relaunched
|
||||
os.unlink(launchdtriggerfile)
|
||||
runtype = "installwithnologout"
|
||||
options.munkistatusoutput = True
|
||||
options.quiet = True
|
||||
@@ -317,6 +322,11 @@ def main():
|
||||
|
||||
if options.manualcheck:
|
||||
# triggered by Managed Software Update.app
|
||||
launchdtriggerfile = \
|
||||
"/private/tmp/.com.googlecode.munki.updatecheck.launchd"
|
||||
if os.path.exists(launchdtriggerfile):
|
||||
# remove it so we aren't automatically relaunched
|
||||
os.unlink(launchdtriggerfile)
|
||||
runtype = "manualcheck"
|
||||
options.munkistatusoutput = True
|
||||
options.quiet = True
|
||||
@@ -372,7 +382,7 @@ def main():
|
||||
|
||||
if options.verbose:
|
||||
print "Managed Software Update Tool"
|
||||
print "Copyright 2009 The Munki Project"
|
||||
print "Copyright 2010 The Munki Project"
|
||||
print "http://code.google.com/p/munki\n"
|
||||
|
||||
updatecheckresult = None
|
||||
|
||||
Reference in New Issue
Block a user