]> git.pld-linux.org Git - packages/eventum.git/blame - eventum-paths.patch
Up to 3.9.3
[packages/eventum.git] / eventum-paths.patch
CommitLineData
4e8519f7
ER
1--- eventum-3.7.4-440-gcc5ad3db5/src/Config/Paths.php 2019-08-21 23:32:40.826463576 +0300
2+++ eventum-3.7.4-440-gcc5ad3db5/src/Config/Paths.php 2019-08-21 23:38:04.548486455 +0300
3@@ -24,14 +24,13 @@
4 // "/var" path for writable data
5- public const APP_VAR_PATH = APP_PATH . '/var';
6- public const APP_CACHE_PATH = self::APP_VAR_PATH . '/cache';
7+ public const APP_CACHE_PATH = '/var/cache/eventum';
1beb4932 8
4e8519f7
ER
9 // define other paths
10 public const APP_TPL_PATH = APP_PATH . '/templates';
11 public const APP_TPL_COMPILE_PATH = self::APP_CACHE_PATH . '/smarty';
12- public const APP_LOG_PATH = self::APP_VAR_PATH . '/log';
13+ public const APP_LOG_PATH = '/var/log/eventum';
14 public const APP_ERROR_LOG = self::APP_LOG_PATH . '/errors.log';
15- public const APP_LOCKS_PATH = self::APP_VAR_PATH . '/lock';
16+ public const APP_LOCKS_PATH = '/var/run/eventum';
17
18 // fonts directory for phplot
19- public const APP_FONTS_PATH = APP_PATH . '/vendor/fonts/liberation';
20+ public const APP_FONTS_PATH = '/usr/share/fonts/TTF';
21 }
4a203501
ER
22--- eventum-3.5.6-98-g5b87d2b0/src/Setup/Requirements.php~ 2019-01-23 01:50:42.000000000 +0200
23+++ eventum-3.5.6-98-g5b87d2b0/src/Setup/Requirements.php 2019-01-24 22:18:56.047816296 +0200
24@@ -64,10 +64,6 @@
290540fe
ER
25 $configPath = Setup::getConfigPath();
26 $setupFile = Setup::getSetupFile();
abac5638 27
290540fe 28- $error = $this->checkPermissions($configPath, "Directory '" . $configPath . "'", true);
1beb4932
ER
29- if (!empty($error)) {
30- $errors[] = $error;
31- }
290540fe 32 $error = $this->checkPermissions($setupFile, "File '" . $setupFile . "'");
1beb4932
ER
33 if (!empty($error)) {
34 $errors[] = $error;
9913db86
ER
35--- eventum-3.9.0/src/Console/Command/MonitorCommand.php~ 2019-10-21 22:17:43.000000000 +0300
36+++ eventum-3.9.0/src/Console/Command/MonitorCommand.php 2020-07-02 00:40:16.042698823 +0300
37@@ -68,9 +68,9 @@
290540fe 38 $required_files = [
290540fe 39 $configPath . '/setup.php' => [
549721ab
ER
40 'check_owner' => true,
41- 'owner' => 'apache',
9913db86 42+ 'owner' => 'http',
549721ab
ER
43 'check_group' => true,
44- 'group' => 'apache',
45+ 'group' => 'http',
46 'check_permission' => true,
47 'permission' => 660,
48 'check_filesize' => true,
cb60690e
ER
49--- eventum-3.1.5/config/sphinx.conf.php~ 2016-11-13 12:05:37.000000000 +0200
50+++ eventum-3.1.5/config/sphinx.conf.php 2016-11-23 03:10:05.855040510 +0200
9d207070
ER
51@@ -1,7 +1,7 @@
52 #!/usr/bin/php
53 <?php
54
cb60690e 55-require_once __DIR__ . '/../init.php';
858c6f2a
ER
56+require_once '/usr/share/eventum/init.php';
57
58 if (!defined('SPHINX_LOG_PATH')) {
59 define('SPHINX_LOG_PATH', '/var/log/sphinx/');
4e8519f7
ER
60--- eventum-3.7.4-440-gcc5ad3db5/src/Attachment/StorageManager.php~ 2019-08-11 22:49:07.000000000 +0300
61+++ eventum-3.7.4-440-gcc5ad3db5/src/Attachment/StorageManager.php 2019-08-21 23:33:19.325911295 +0300
62@@ -33,7 +33,7 @@
9dd475ab
ER
63 *
64 * @var string
65 */
4e8519f7
ER
66- private const STORAGE_PATH = Paths::APP_PATH . '/var/storage/';
67+ private const STORAGE_PATH = '/var/lib/eventum/storage/';
ac6bab4c 68
9dd475ab
ER
69 /**
70 * @var MountManager
cbcc369e
ER
71--- eventum-3.9.3/res/services.yml~ 2020-07-29 23:40:22.000000000 +0300
72+++ eventum-3.9.3/res/services.yml 2020-08-10 16:29:01.591109700 +0300
6f02f9c9 73@@ -15,13 +15,13 @@
cbcc369e
ER
74 # makes classes in src/ available to be used as services
75 # this creates a service per class whose id is the fully-qualified class name
76 Eventum\:
77- resource: '../src/*'
78- exclude: '../src/{DependencyInjection,Entity,Migrations,Tests,Kernel.php}'
79+ resource: '/usr/share/eventum/src/*'
80+ exclude: '/usr/share/eventum/src/{DependencyInjection,Entity,Migrations,Tests,Kernel.php}'
6f02f9c9 81
cbcc369e
ER
82 # controllers are imported separately to make sure services can be injected
83 # as action arguments even if you don't extend any base controller class
84 Eventum\Controller\:
85- resource: '../src/Controller'
86+ resource: '/usr/share/eventum/src/Controller'
87 tags: ['controller.service_arguments']
6f02f9c9 88
cbcc369e 89 # add more service definitions when explicit configuration is needed
This page took 0.067963 seconds and 4 git commands to generate.