mirror of
https://github.com/munki/munki.git
synced 2026-04-23 13:29:26 -05:00
Force Munki to obtain temp directories within /tmp, to avoid rare, intermittent issue where tempfile.mkdtemp() would choose to create a temp dir on an NFS path, such as /home/<username>/tmp/, causing Munki to crash when attempting to chown/etc.
This commit is contained in:
@@ -647,7 +647,7 @@ def runAdobeCS5AAMEEInstall(dmgpath):
|
||||
# installation tools, they are now happy.
|
||||
basepath = os.path.dirname(deploymentmanager)
|
||||
number_of_payloads = countPayloads(basepath)
|
||||
tmpdir = tempfile.mkdtemp()
|
||||
tmpdir = tempfile.mkdtemp(prefix='munki-', dir='/tmp')
|
||||
|
||||
# make our symlinks
|
||||
os.symlink(os.path.join(basepath,"ASU"), os.path.join(tmpdir, "ASU"))
|
||||
@@ -700,7 +700,7 @@ def runAdobeCS5PatchInstaller(dmgpath, copylocal=False):
|
||||
if mountpoints:
|
||||
if copylocal:
|
||||
# copy the update to the local disk before installing
|
||||
updatedir = tempfile.mkdtemp()
|
||||
updatedir = tempfile.mkdtemp(prefix='munki-', dir='/tmp')
|
||||
retcode = subprocess.call(["/bin/cp", "-r",
|
||||
mountpoints[0], updatedir])
|
||||
# unmount diskimage
|
||||
|
||||
@@ -2453,7 +2453,7 @@ def forceLogoutNow():
|
||||
#debug = False
|
||||
verbose = 1
|
||||
munkistatusoutput = False
|
||||
tmpdir = tempfile.mkdtemp()
|
||||
tmpdir = tempfile.mkdtemp(prefix='munki-', dir='/tmp')
|
||||
report = {}
|
||||
|
||||
def main():
|
||||
|
||||
Reference in New Issue
Block a user