From 541370c29584ec88d3b70e8a6467e0c300452870 Mon Sep 17 00:00:00 2001 From: Chris Beams Date: Fri, 5 Nov 2010 09:31:53 -0700 Subject: [PATCH] Respect sticky/setuid bits when unzipping docs remotely The spring-integration/docs/ directory on static.springframework.org has sticky group-write permissions. unzip is now invoked with the '-K' flag to ensure that newly created directories respect these permissions. This is important to ensure that different (ssh) users can release the project without running into permissions errors. Without -K, the unzip command will preserve whatever permissions were present on the files and directories at the time of archiving, and this usually means that group-write is off. Of course, all this assumes that users doing releases are part of the same group - 'springorg' in this case. --- docs/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/build.gradle b/docs/build.gradle index 8535b1c092..9c3ea47505 100644 --- a/docs/build.gradle +++ b/docs/build.gradle @@ -225,7 +225,7 @@ uploadArchives { classpath: configurations.scpAntTask.asPath) // copy the archive, unpack it, then delete it - def unpackCommand = "cd ${remoteDocsDir} && unzip -o ${archive.archiveName}" + def unpackCommand = "cd ${remoteDocsDir} && unzip -K -o ${archive.archiveName}" def deleteCommand = "rm ${remoteDocsDir}/${archive.archiveName}" println "sshexec ${unpackCommand}"