ソースを参照

BUG: 86651 Set permissions correctly when doing a SSH deploy via ConfigEnv

Set permissions correctly when doing a SSH deploy via ConfigEnv. As copy is
being done recursively, add the -R flag to the chmod command to recursively
set the permissions.

Signed-off-by: Sridhar Meda <sridhar.meda@lexisnexis.com>
Sridhar Meda 13 年 前
コミット
b9472f68b3
1 ファイル変更1 行追加1 行削除
  1. 1 1
      deployment/deploy/DeployTask.cpp

+ 1 - 1
deployment/deploy/DeployTask.cpp

@@ -661,7 +661,7 @@ public:
              try
              {
                StringBuffer cmd;
-               cmd.clear().appendf("chmod 744 %s", destpath.str());
+               cmd.clear().appendf("chmod -R 744 %s", destpath.str());
                task->execSSHCmd(ip.str(), cmd, outbuf, errbuf);
              }
              catch(IException* e)