Selaa lähdekoodia

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

lushuncheng 6 vuotta sitten
vanhempi
commit
cb6b4cebf5
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  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';