]> git.pld-linux.org Git - packages/eventum.git/blame - eventum-paths.patch
up to 3.7.3
[packages/eventum.git] / eventum-paths.patch
CommitLineData
59b9fac1
ER
1--- eventum-3.6.7-73-ga12094613/globals.php 2019-05-17 00:29:37.284776088 +0300
2+++ eventum-3.6.7-73-ga12094613/globals.php 2019-05-17 00:30:55.133655597 +0300
3@@ -22,10 +22,8 @@
4-// /var path for writable data
5-define('APP_VAR_PATH', APP_PATH . '/var');
6-define('APP_CACHE_PATH', APP_VAR_PATH . '/cache');
7+define('APP_CACHE_PATH', '/var/cache/eventum');
1beb4932
ER
8
9 // define other paths
10 define('APP_TPL_PATH', APP_PATH . '/templates');
59b9fac1 11 define('APP_TPL_COMPILE_PATH', APP_CACHE_PATH . '/smarty');
1beb4932 12-define('APP_LOG_PATH', APP_VAR_PATH . '/log');
1beb4932
ER
13+define('APP_LOG_PATH', '/var/log/eventum');
14 define('APP_ERROR_LOG', APP_LOG_PATH . '/errors.log');
36395687
ER
15-define('APP_LOCKS_PATH', APP_VAR_PATH . '/lock');
16+define('APP_LOCKS_PATH', '/var/run/eventum');
4a203501
ER
17--- eventum-3.5.6-98-g5b87d2b0/src/Setup/Requirements.php~ 2019-01-23 01:50:42.000000000 +0200
18+++ eventum-3.5.6-98-g5b87d2b0/src/Setup/Requirements.php 2019-01-24 22:18:56.047816296 +0200
19@@ -64,10 +64,6 @@
290540fe
ER
20 $configPath = Setup::getConfigPath();
21 $setupFile = Setup::getSetupFile();
abac5638 22
290540fe 23- $error = $this->checkPermissions($configPath, "Directory '" . $configPath . "'", true);
1beb4932
ER
24- if (!empty($error)) {
25- $errors[] = $error;
26- }
290540fe 27 $error = $this->checkPermissions($setupFile, "File '" . $setupFile . "'");
1beb4932
ER
28 if (!empty($error)) {
29 $errors[] = $error;
290540fe
ER
30--- eventum-3.5.0/src/Console/Command/MonitorCommand.php~ 2018-05-20 17:33:34.000000000 +0300
31+++ eventum-3.5.0/src/Console/Command/MonitorCommand.php 2018-05-21 01:42:21.463354763 +0300
32@@ -47,17 +47,17 @@
33 $required_files = [
34 $configPath . '/config.php' => [
549721ab
ER
35 'check_owner' => true,
36- 'owner' => 'apache',
37+ 'owner' => 'root',
38 'check_group' => true,
39- 'group' => 'apache',
40+ 'group' => 'http',
41 'check_permission' => true,
42 'permission' => 640,
a8005c48 43 ],
290540fe 44 $configPath . '/setup.php' => [
549721ab
ER
45 'check_owner' => true,
46- 'owner' => 'apache',
47+ 'owner' => 'root',
48 'check_group' => true,
49- 'group' => 'apache',
50+ 'group' => 'http',
51 'check_permission' => true,
52 'permission' => 660,
53 'check_filesize' => true,
cb60690e
ER
54--- eventum-3.1.5/config/sphinx.conf.php~ 2016-11-13 12:05:37.000000000 +0200
55+++ eventum-3.1.5/config/sphinx.conf.php 2016-11-23 03:10:05.855040510 +0200
9d207070
ER
56@@ -1,7 +1,7 @@
57 #!/usr/bin/php
58 <?php
59
cb60690e 60-require_once __DIR__ . '/../init.php';
858c6f2a
ER
61+require_once '/usr/share/eventum/init.php';
62
63 if (!defined('SPHINX_LOG_PATH')) {
64 define('SPHINX_LOG_PATH', '/var/log/sphinx/');
9dd475ab
ER
65--- eventum-3.3.1/src/Attachment/StorageManager.php~ 2017-10-08 15:53:56.000000000 +0300
66+++ eventum-3.3.1/src/Attachment/StorageManager.php 2017-10-09 23:22:00.162142738 +0300
67@@ -32,7 +32,7 @@
68 *
69 * @var string
70 */
71- const STORAGE_PATH = APP_PATH . '/var/storage/';
72+ const STORAGE_PATH = '/var/lib/eventum/storage/';
ac6bab4c 73
9dd475ab
ER
74 /**
75 * @var MountManager
e13c0a7b
ER
76--- eventum-3.7.1/src/Kernel.php~ 2019-04-06 17:42:28.000000000 +0300
77+++ eventum-3.7.1/src/Kernel.php 2019-06-02 23:02:32.198743341 +0300
78@@ -87,11 +87,11 @@
79
80 public function getCacheDir(): string
81 {
82- return "{$this->rootDir}/var/cache/{$this->environment}";
83+ return APP_CACHE_PATH . '/' . $this->environment;
84 }
85
86 public function getLogDir(): string
87 {
88- return "{$this->rootDir}/var/log";
89+ return APP_LOG_PATH;
90 }
91 }
6f02f9c9
ER
92--- eventum/config/services.yml~ 2019-08-02 01:33:18.681001511 +0300
93+++ eventum/config/services.yml 2019-08-02 01:33:20.290978222 +0300
94@@ -15,13 +15,13 @@
95 # makes classes in src/ available to be used as services
96 # this creates a service per class whose id is the fully-qualified class name
97 Eventum\:
98- resource: '../src/*'
99- exclude: '../src/{DependencyInjection,Entity,Migrations,Tests,Kernel.php}'
100+ resource: '/usr/share/eventum/src/*'
101+ exclude: '/usr/share/eventum/src/{DependencyInjection,Entity,Migrations,Tests,Kernel.php}'
102
103 # controllers are imported separately to make sure services can be injected
104 # as action arguments even if you don't extend any base controller class
105 Eventum\Controller\:
106- resource: '../src/Controller'
107+ resource: '/usr/share/eventum/src/Controller'
108 tags: ['controller.service_arguments']
109
110 # add more service definitions when explicit configuration is needed
This page took 0.121496 seconds and 4 git commands to generate.