@@ -153,6 +153,9 @@ discard block |
||
| 153 | 153 | self::ChmodPermissionsSetter($event, $http_user, $path); |
| 154 | 154 | } |
| 155 | 155 | |
| 156 | + /** |
|
| 157 | + * @param string|null $http_user |
|
| 158 | + */ |
|
| 156 | 159 | public static function SetfaclPermissionsSetter(Event $event, $http_user, $path) { |
| 157 | 160 | if (!is_dir($path)) |
| 158 | 161 | mkdir($path, 0777, true); |
@@ -162,6 +165,9 @@ discard block |
||
| 162 | 165 | self::runProcess($event, 'setfacl -d -m u:"'.$http_user.'":rwX -m u:'.$_SERVER['USER'].':rwX '.$path); |
| 163 | 166 | } |
| 164 | 167 | |
| 168 | + /** |
|
| 169 | + * @param string|null $http_user |
|
| 170 | + */ |
|
| 165 | 171 | public static function ChmodPermissionsSetter(Event $event, $http_user, $path) { |
| 166 | 172 | if (!is_dir($path)) |
| 167 | 173 | mkdir($path, 0777, true); |
@@ -181,6 +187,9 @@ discard block |
||
| 181 | 187 | } |
| 182 | 188 | } |
| 183 | 189 | |
| 190 | + /** |
|
| 191 | + * @param string $commandline |
|
| 192 | + */ |
|
| 184 | 193 | public static function runProcess(Event $event, $commandline) { |
| 185 | 194 | if ($event->getIO()->isVerbose() === TRUE) |
| 186 | 195 | $event->getIO()->write(sprintf('Running <info>%s</info>', $commandline)); |
@@ -155,7 +155,7 @@ discard block |
||
| 155 | 155 | |
| 156 | 156 | public static function SetfaclPermissionsSetter(Event $event, $http_user, $path) { |
| 157 | 157 | if (!is_dir($path)) |
| 158 | - mkdir($path, 0777, true); |
|
| 158 | + mkdir($path, 0777, TRUE); |
|
| 159 | 159 | if (!is_dir($path)) |
| 160 | 160 | throw new \Exception('Path Not Found: '.$path); |
| 161 | 161 | self::runProcess($event, 'setfacl -m u:"'.$http_user.'":rwX -m u:'.$_SERVER['USER'].':rwX '.$path); |
@@ -164,7 +164,7 @@ discard block |
||
| 164 | 164 | |
| 165 | 165 | public static function ChmodPermissionsSetter(Event $event, $http_user, $path) { |
| 166 | 166 | if (!is_dir($path)) |
| 167 | - mkdir($path, 0777, true); |
|
| 167 | + mkdir($path, 0777, TRUE); |
|
| 168 | 168 | if (!is_dir($path)) |
| 169 | 169 | throw new \Exception('Path Not Found: '.$path); |
| 170 | 170 | self::runProcess($event, 'chmod +a "'.$http_user.' allow delete,write,append,file_inherit,directory_inherit" '.$path); |