|
146 | 146 | CommandLine::system('Making ' . $cwd . '/config/schema'); |
147 | 147 | mkdir($cwd . '/config/schema', 0777); |
148 | 148 | } |
| 149 | + |
| 150 | + if (!is_dir($cwd . '/config/packages')) { |
| 151 | + CommandLine::system('Making ' . $cwd . '/config/packages'); |
| 152 | + mkdir($cwd . '/config/packages', 0777); |
| 153 | + } |
149 | 154 | } |
150 | 155 |
|
151 | 156 | //chmod compiled, log, config, public/upload |
152 | 157 | if(!$request->hasStage('skip-chmod')) { |
| 158 | + // special case for config folder |
| 159 | + $configDirectories = glob($cwd . '/config/*', GLOB_ONLYDIR); |
| 160 | + |
| 161 | + // map each directories |
| 162 | + foreach($configDirectories as $directory) { |
| 163 | + CommandLine::system('chmoding ' . $directory); |
| 164 | + chmod($directory, 0777); |
| 165 | + } |
| 166 | + |
153 | 167 | if (is_dir($cwd . '/compiled')) { |
154 | 168 | CommandLine::system('chmoding ' . $cwd . '/compiled'); |
155 | 169 | chmod($cwd . '/compiled', 0777); |
|
160 | 174 | chmod($cwd . '/log', 0777); |
161 | 175 | } |
162 | 176 |
|
163 | | - if (is_dir($cwd . '/config')) { |
164 | | - CommandLine::system('chmoding ' . $cwd . '/config'); |
165 | | - chmod($cwd . '/config', 0777); |
166 | | - } |
167 | | - |
168 | 177 | if (is_dir($cwd . '/public/upload')) { |
169 | 178 | CommandLine::system('chmoding ' . $cwd . '/public/upload'); |
170 | 179 | chmod($cwd . '/public/upload', 0777); |
|
0 commit comments