@@ -169,6 +169,9 @@ |
||
169 | 169 | self::runCommand($event, 'chmod +a "$USER allow delete,write,append,file_inherit,directory_inherit" %path%', $path); |
170 | 170 | } |
171 | 171 | |
172 | + /** |
|
173 | + * @param string $command |
|
174 | + */ |
|
172 | 175 | public static function runCommand(Event $event, $command, $path) { |
173 | 176 | return self::runProcess($event, str_replace(['%httpduser%', '%path%'], [self::getHttpdUser($event), $path], $command)); |
174 | 177 | } |
@@ -153,7 +153,7 @@ discard block |
||
153 | 153 | |
154 | 154 | public static function SetfaclPermissionsSetter(Event $event, $path) { |
155 | 155 | if (!is_dir($path)) |
156 | - mkdir($path, 0777, true); |
|
156 | + mkdir($path, 0777, TRUE); |
|
157 | 157 | if (!is_dir($path)) |
158 | 158 | throw new \Exception('Path Not Found: '.$path); |
159 | 159 | self::runCommand($event, 'setfacl -m u:"%httpduser%":rwX -m u:$USER:rwX %path%', $path); |
@@ -162,7 +162,7 @@ discard block |
||
162 | 162 | |
163 | 163 | public static function ChmodPermissionsSetter(Event $event, $path) { |
164 | 164 | if (!is_dir($path)) |
165 | - mkdir($path, 0777, true); |
|
165 | + mkdir($path, 0777, TRUE); |
|
166 | 166 | if (!is_dir($path)) |
167 | 167 | throw new \Exception('Path Not Found: '.$path); |
168 | 168 | self::runCommand($event, 'chmod +a "%httpduser% allow delete,write,append,file_inherit,directory_inherit" %path%', $path); |