]> git.pld-linux.org Git - packages/eventum.git/blame - eventum-paths.patch
setup attachments to /var/lib/eventum/storage (if enabled)
[packages/eventum.git] / eventum-paths.patch
CommitLineData
1beb4932
ER
1--- eventum-3.1.10-340-gfc2f2394/globals.php~ 2017-05-16 18:18:37.000000000 +0300
2+++ eventum-3.1.10-340-gfc2f2394/globals.php 2017-05-17 19:54:53.436574941 +0300
3@@ -25,7 +25,7 @@
4
5 // define other paths
6 define('APP_TPL_PATH', APP_PATH . '/templates');
7-define('APP_TPL_COMPILE_PATH', APP_VAR_PATH . '/cache');
8-define('APP_LOCKS_PATH', APP_VAR_PATH . '/lock');
9-define('APP_LOG_PATH', APP_VAR_PATH . '/log');
10+define('APP_TPL_COMPILE_PATH', '/var/cache/eventum');
11+define('APP_LOCKS_PATH', '/var/run/eventum');
12+define('APP_LOG_PATH', '/var/log/eventum');
13 define('APP_ERROR_LOG', APP_LOG_PATH . '/errors.log');
1beb4932
ER
14--- eventum-3.1.10-340-gfc2f2394/src/Controller/Setup/SetupController.php~ 2017-05-04 23:47:50.000000000 +0300
15+++ eventum-3.1.10-340-gfc2f2394/src/Controller/Setup/SetupController.php 2017-05-17 19:55:50.362400076 +0300
16@@ -201,10 +201,6 @@
17 = "The 'file_uploads' directive needs to be enabled in your PHP.INI file in order for Eventum to work properly.";
18 }
abac5638 19
1beb4932
ER
20- $error = $this->checkPermissions(APP_CONFIG_PATH, "Directory '" . APP_CONFIG_PATH . "'", true);
21- if (!empty($error)) {
22- $errors[] = $error;
23- }
24 $error = $this->checkPermissions(APP_SETUP_FILE, "File '" . APP_SETUP_FILE . "'");
25 if (!empty($error)) {
26 $errors[] = $error;
549721ab
ER
27--- eventum-3.0.8-100-g3543f89/src/Command/MonitorCommand.php~ 2016-01-31 18:24:19.000000000 +0200
28+++ eventum-3.0.8-100-g3543f89/src/Command/MonitorCommand.php 2016-02-01 00:16:28.751423105 +0200
29@@ -31,17 +31,17 @@
30 $required_files = array(
a8005c48 31 APP_CONFIG_PATH . '/config.php' => [
549721ab
ER
32 'check_owner' => true,
33- 'owner' => 'apache',
34+ 'owner' => 'root',
35 'check_group' => true,
36- 'group' => 'apache',
37+ 'group' => 'http',
38 'check_permission' => true,
39 'permission' => 640,
a8005c48
ER
40 ],
41 APP_CONFIG_PATH . '/setup.php' => [
549721ab
ER
42 'check_owner' => true,
43- 'owner' => 'apache',
44+ 'owner' => 'root',
45 'check_group' => true,
46- 'group' => 'apache',
47+ 'group' => 'http',
48 'check_permission' => true,
49 'permission' => 660,
50 'check_filesize' => true,
cb60690e
ER
51--- eventum-3.1.5/config/sphinx.conf.php~ 2016-11-13 12:05:37.000000000 +0200
52+++ eventum-3.1.5/config/sphinx.conf.php 2016-11-23 03:10:05.855040510 +0200
9d207070
ER
53@@ -1,7 +1,7 @@
54 #!/usr/bin/php
55 <?php
56
cb60690e 57-require_once __DIR__ . '/../init.php';
858c6f2a
ER
58+require_once '/usr/share/eventum/init.php';
59
60 if (!defined('SPHINX_LOG_PATH')) {
61 define('SPHINX_LOG_PATH', '/var/log/sphinx/');
ac6bab4c
ER
62--- eventum-3.3.0/src/Attachment/StorageManager.php~ 2017-07-19 23:14:28.000000000 +0300
63+++ eventum-3.3.0/src/Attachment/StorageManager.php 2017-10-08 15:47:26.170890911 +0300
64@@ -50,7 +50,7 @@
65 $mount_config = [
66 'pdo' => $this->getPdoAdapter(),
67 'legacy' => new Filesystem(new EventumLegacyAdapter()),
68- 'local' => new Filesystem(new Local(APP_PATH . '/var/storage/')),
69+ 'local' => new Filesystem(new Local('/var/lib/eventum/storage')),
70 ];
71
72 foreach ($setup['adapters'] as $adapter_name => $adapter_config) {
73--- eventum-3.3.0/contrib/migrate_storage_adapter.php~ 2017-10-05 04:42:47.000000000 +0300
74+++ eventum-3.3.0/contrib/migrate_storage_adapter.php 2017-10-08 15:50:45.151352787 +0300
75@@ -124,7 +124,7 @@
76
77 if ($this->target_adapter === 'local') {
78 // try to set the timestamp on the filesystem to match what is stored in the database
79- $fs_path = str_replace('local://', APP_PATH . '/var/storage/', $new_path);
80+ $fs_path = str_replace('local://', '/var/lib/eventum/storage/', $new_path);
81 $created_date = strtotime($file['iat_created_date']);
82 touch($fs_path, $created_date);
83 }
This page took 0.047372 seconds and 4 git commands to generate.