]> git.pld-linux.org Git - packages/eventum.git/blob - eventum-paths.patch
003fb6b48cecbb232e58210fafbf629dce8d0309
[packages/eventum.git] / eventum-paths.patch
1 --- eventum-3.9.4/src/Config/Paths.php~ 2020-08-10 16:32:37.000000000 +0300
2 +++ eventum-3.9.4/src/Config/Paths.php  2020-08-24 14:18:12.547339038 +0300
3 @@ -22,18 +22,16 @@
4      public const APP_PUBLIC_PATH = APP_PATH . '/htdocs';
5      public const APP_INC_PATH = APP_PATH . '/lib/eventum';
6  
7 -    // "/var" path for writable data
8 -    private const APP_VAR_PATH = APP_PATH . '/var';
9 -    public const APP_CACHE_PATH = self::APP_VAR_PATH . '/cache';
10 +    public const APP_CACHE_PATH = '/var/cache/eventum';
11  
12      // define other paths
13      public const APP_TPL_PATH = APP_PATH . '/templates';
14      public const APP_TPL_COMPILE_PATH = self::APP_CACHE_PATH . '/smarty';
15 -    public const APP_LOG_PATH = self::APP_VAR_PATH . '/log';
16 +    public const APP_LOG_PATH = '/var/log/eventum';
17      /** @deprecated */
18      public const APP_ERROR_LOG = self::APP_LOG_PATH . '/errors.log';
19 -    public const APP_LOCKS_PATH = self::APP_VAR_PATH . '/lock';
20 +    public const APP_LOCKS_PATH = '/var/run/eventum';
21  
22      // fonts directory for phplot
23 -    public const APP_FONTS_PATH = APP_PATH . '/vendor/fonts/liberation';
24 +    public const APP_FONTS_PATH = '/usr/share/fonts/TTF';
25  }
26 --- eventum-3.5.6-98-g5b87d2b0/src/Setup/Requirements.php~      2019-01-23 01:50:42.000000000 +0200
27 +++ eventum-3.5.6-98-g5b87d2b0/src/Setup/Requirements.php       2019-01-24 22:18:56.047816296 +0200
28 @@ -64,10 +64,6 @@
29          $configPath = Setup::getConfigPath();
30          $setupFile = Setup::getSetupFile();
31  
32 -        $error = $this->checkPermissions($configPath, "Directory '" . $configPath . "'", true);
33 -        if (!empty($error)) {
34 -            $errors[] = $error;
35 -        }
36          $error = $this->checkPermissions($setupFile, "File '" . $setupFile . "'");
37          if (!empty($error)) {
38              $errors[] = $error;
39 --- eventum-3.9.0/src/Console/Command/MonitorCommand.php~       2019-10-21 22:17:43.000000000 +0300
40 +++ eventum-3.9.0/src/Console/Command/MonitorCommand.php        2020-07-02 00:40:16.042698823 +0300
41 @@ -68,9 +68,9 @@
42          $required_files = [
43              $configPath . '/setup.php' => [
44                  'check_owner' => true,
45 -                'owner' => 'apache',
46 +                'owner' => 'http',
47                  'check_group' => true,
48 -                'group' => 'apache',
49 +                'group' => 'http',
50                  'check_permission' => true,
51                  'permission' => 660,
52                  'check_filesize' => true,
53 --- eventum-3.1.5/config/sphinx.conf.php~       2016-11-13 12:05:37.000000000 +0200
54 +++ eventum-3.1.5/config/sphinx.conf.php        2016-11-23 03:10:05.855040510 +0200
55 @@ -1,7 +1,7 @@
56  #!/usr/bin/php
57  <?php
58  
59 -require_once __DIR__ . '/../init.php';
60 +require_once '/usr/share/eventum/init.php';
61  
62  if (!defined('SPHINX_LOG_PATH')) {
63      define('SPHINX_LOG_PATH', '/var/log/sphinx/');
64 --- eventum-3.7.4-440-gcc5ad3db5/src/Attachment/StorageManager.php~     2019-08-11 22:49:07.000000000 +0300
65 +++ eventum-3.7.4-440-gcc5ad3db5/src/Attachment/StorageManager.php      2019-08-21 23:33:19.325911295 +0300
66 @@ -33,7 +33,7 @@
67       *
68       * @var string
69       */
70 -    private const STORAGE_PATH = Paths::APP_PATH . '/var/storage/';
71 +    private const STORAGE_PATH = '/var/lib/eventum/storage/';
72  
73      /**
74       * @var MountManager
This page took 0.051491 seconds and 2 git commands to generate.