airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shame...@apache.org
Subject [1/2] airavata git commit: change permisson of archive files
Date Mon, 14 Mar 2016 15:58:27 GMT
Repository: airavata
Updated Branches:
  refs/heads/develop 6ebc2b39b -> 887ea094f


change permisson of archive files


Project: http://git-wip-us.apache.org/repos/asf/airavata/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata/commit/c36aa15d
Tree: http://git-wip-us.apache.org/repos/asf/airavata/tree/c36aa15d
Diff: http://git-wip-us.apache.org/repos/asf/airavata/diff/c36aa15d

Branch: refs/heads/develop
Commit: c36aa15d8c40bf647e5d851084d5c9b3ffd8aca0
Parents: 4968ee8
Author: Shameera Rathnayaka <shameerainfo@gmail.com>
Authored: Mon Mar 14 11:57:55 2016 -0400
Committer: Shameera Rathnayaka <shameerainfo@gmail.com>
Committed: Mon Mar 14 11:57:55 2016 -0400

----------------------------------------------------------------------
 .../main/java/org/apache/airavata/gfac/impl/task/ArchiveTask.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/c36aa15d/modules/gfac/gfac-impl/src/main/java/org/apache/airavata/gfac/impl/task/ArchiveTask.java
----------------------------------------------------------------------
diff --git a/modules/gfac/gfac-impl/src/main/java/org/apache/airavata/gfac/impl/task/ArchiveTask.java
b/modules/gfac/gfac-impl/src/main/java/org/apache/airavata/gfac/impl/task/ArchiveTask.java
index ae44997..61cea82 100644
--- a/modules/gfac/gfac-impl/src/main/java/org/apache/airavata/gfac/impl/task/ArchiveTask.java
+++ b/modules/gfac/gfac-impl/src/main/java/org/apache/airavata/gfac/impl/task/ArchiveTask.java
@@ -140,7 +140,8 @@ public class ArchiveTask implements Task {
             String destParent = destPath.substring(0, destPath.lastIndexOf("/"));
             String storageArchiveDir = "ARCHIVE";
             commandInfo = new RawCommandInfo("cd " + destParent + " && mkdir " +
storageArchiveDir +
-                    " && tar -xvf " + archiveTar + " -C " + storageArchiveDir + "
&& rm " + archiveTar);
+                    " && tar -xvf " + archiveTar + " -C " + storageArchiveDir + "
&& rm " + archiveTar +
+                    " && chmod 744 -R " + storageArchiveDir + "/*");
             executeCommand(sshSession, commandInfo, new StandardOutReader());
         } catch (GFacException | AiravataException | URISyntaxException | SSHApiException
e) {
             String msg = "Error! Archive task failed";


Mime
View raw message