Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15397866
D11906.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
944 B
Referenced Files
None
Subscribers
None
D11906.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D11906: Create the Aphlict PID directory
Attached
Detach File
Event Timeline
Log In to Comment