Skip to content

Commit 57a114f

Browse files
committed
Set chmod when rsyncing genomicsdb and genomes
1 parent 046dfd3 commit 57a114f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

SequenceAnalysis/api-src/org/labkey/api/sequenceanalysis/pipeline/ReferenceGenomeManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ public void cacheGenomeLocally(ReferenceGenome genome, Logger log) throws Pipeli
117117

118118
//Note: neither source nor dest have trailing slashes, so the entire source (i.e '128', gets synced into a subdir of dest)
119119
new SimpleScriptWrapper(log).execute(Arrays.asList(
120-
"rsync", "-r", "-a", "--delete", "--no-owner", "--no-group", sourceDir.getPath(), localCacheDir.getPath()
120+
"rsync", "-r", "-a", "--delete", "--no-owner", "--no-group", "--chmod=D2770,F660", sourceDir.getPath(), localCacheDir.getPath()
121121
));
122122

123123
File lastUpdate = getLocalUpdateFile(genome);

SequenceAnalysis/src/org/labkey/sequenceanalysis/run/util/AbstractGenomicsDBImportHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -711,7 +711,7 @@ private void copyWorkspace(JobContext ctx, File sourceWorkspace, File destinatio
711711
ctx.getLogger().debug("Copying directory with rsync: " + sourceFolder.getPath());
712712
//NOTE: since neither path will end in slashes, rsync to the parent folder should result in the correct placement
713713
new SimpleScriptWrapper(ctx.getLogger()).execute(Arrays.asList(
714-
"rsync", "-r", "-a", "--delete", "--no-owner", "--no-group", "--no-perms", sourceFolder.getPath(), destContigFolder.getParentFile().getPath()
714+
"rsync", "-r", "-a", "--delete", "--no-owner", "--no-group", "--no-perms", "--chmod=D2770,F660", sourceFolder.getPath(), destContigFolder.getParentFile().getPath()
715715
));
716716
}
717717

SequenceAnalysis/src/org/labkey/sequenceanalysis/run/util/GenotypeGVCFsWrapper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ else if (f.isDirectory() && doneFile.exists())
199199
//NOTE: since neither path will end in slashes, rsync to the parent folder should result in the correct placement
200200
ctx.getLogger().debug("Copying directory with rsync: " + movedFile.getPath());
201201
new SimpleScriptWrapper(ctx.getLogger()).execute(Arrays.asList(
202-
"rsync", "-r", "-a", "--delete", "--no-owner", "--no-group", f.getPath(), movedFile.getParentFile().getPath()
202+
"rsync", "-r", "-a", "--delete", "--no-owner", "--no-group", "--chmod=D2770,F660", f.getPath(), movedFile.getParentFile().getPath()
203203
));
204204
}
205205

0 commit comments

Comments
 (0)