X-Git-Url: http://git.pld-linux.org/?p=packages%2Feventum.git;a=blobdiff_plain;f=eventum-paths.patch;h=6baaa0573264fec15e2e6e4b5000baea8aa7c4f2;hp=428ec5636b0e8ed5df4ffe9c3bc79e4f4d5a6240;hb=ac6bab4cd7a6966aaabe5b6daf8bdc178e4272e2;hpb=935f6c79d48534409a6bc8f2018a2e0230fa1cc9 diff --git a/eventum-paths.patch b/eventum-paths.patch index 428ec56..6baaa05 100644 --- a/eventum-paths.patch +++ b/eventum-paths.patch @@ -59,3 +59,25 @@ if (!defined('SPHINX_LOG_PATH')) { define('SPHINX_LOG_PATH', '/var/log/sphinx/'); +--- eventum-3.3.0/src/Attachment/StorageManager.php~ 2017-07-19 23:14:28.000000000 +0300 ++++ eventum-3.3.0/src/Attachment/StorageManager.php 2017-10-08 15:47:26.170890911 +0300 +@@ -50,7 +50,7 @@ + $mount_config = [ + 'pdo' => $this->getPdoAdapter(), + 'legacy' => new Filesystem(new EventumLegacyAdapter()), +- 'local' => new Filesystem(new Local(APP_PATH . '/var/storage/')), ++ 'local' => new Filesystem(new Local('/var/lib/eventum/storage')), + ]; + + foreach ($setup['adapters'] as $adapter_name => $adapter_config) { +--- eventum-3.3.0/contrib/migrate_storage_adapter.php~ 2017-10-05 04:42:47.000000000 +0300 ++++ eventum-3.3.0/contrib/migrate_storage_adapter.php 2017-10-08 15:50:45.151352787 +0300 +@@ -124,7 +124,7 @@ + + if ($this->target_adapter === 'local') { + // try to set the timestamp on the filesystem to match what is stored in the database +- $fs_path = str_replace('local://', APP_PATH . '/var/storage/', $new_path); ++ $fs_path = str_replace('local://', '/var/lib/eventum/storage/', $new_path); + $created_date = strtotime($file['iat_created_date']); + touch($fs_path, $created_date); + }