浏览代码

修复可能会导致的权限 问题

lushuncheng 6 年之前
父节点
当前提交
cb6b4cebf5
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      command/Start.php

+ 2 - 0
command/Start.php

@@ -29,6 +29,8 @@ class Start
 
     public function __construct($argv)
     {
+        // 防止git仓库有人改了文件权限,容器里面shell脚本无法执行
+        system("sudo chmod +x " . ROOT_DIR . '/shell/*');
         $params = $this->parseArgs($argv);
         $action = $params['action'];
         $proginnBranch = $params['proginn-branch'] ?? 'master';