Page MenuHomePhabricator

D11906.diff
No OneTemporary

D11906.diff

diff --git a/src/applications/aphlict/management/PhabricatorAphlictManagementWorkflow.php b/src/applications/aphlict/management/PhabricatorAphlictManagementWorkflow.php
--- a/src/applications/aphlict/management/PhabricatorAphlictManagementWorkflow.php
+++ b/src/applications/aphlict/management/PhabricatorAphlictManagementWorkflow.php
@@ -31,7 +31,21 @@
}
final public function getPIDPath() {
- return PhabricatorEnv::getEnvConfig('notification.pidfile');
+ $path = PhabricatorEnv::getEnvConfig('notification.pidfile');
+
+ try {
+ $dir = dirname($path);
+ if (!Filesystem::pathExists($dir)) {
+ Filesystem::createDirectory($dir, 0755, true);
+ }
+ } catch (FilesystemException $ex) {
+ throw new Exception(
+ pht(
+ "Failed to create '%s'. You should manually create this directory.",
+ $dir));
+ }
+
+ return $path;
}
final public function getLogPath() {

File Metadata

Mime Type
text/plain
Expires
Mon, Mar 17, 10:40 PM (22 h, 25 m ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7706338
Default Alt Text
D11906.diff (944 B)

Event Timeline