aboutsummaryrefslogtreecommitdiffstats
path: root/testing/homer-api/homer-move-config2etc.patch
blob: 37bcca0b118d0d294a6c39e9dc928e6cb6a12cdd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
--- homer-api-5.0.6/api/configuration_example.php
+++ homer-api-5.0.6.alpine/api/configuration_example.php
@@ -30,7 +30,7 @@
 
 /* INCLUDE preferences */
 
-include_once("preferences.php");
+include_once("/etc/homer/preferences.php");
 
 endif;
 
--- homer-api-5.0.6/api/index.php
+++ homer-api-5.0.6.alpine/api/index.php
@@ -30,7 +30,7 @@
 define('ROOT', realpath(dirname(__FILE__) . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR));
 define('_HOMEREXEC', "1");
 
-require_once("configuration.php");
+require_once("/etc/homer/configuration.php");
 
 date_default_timezone_set(HOMER_TIMEZONE);
 ini_set('date.timezone', HOMER_TIMEZONE);
--- homer-api-5.0.6/scripts/homer_mysql_remove_partitions.pl
+++ homer-api-5.0.6.alpine/scripts/homer_mysql_remove_partitions.pl
@@ -31,7 +31,7 @@
 $| =1;
 
 # Determine path and set default rotation.ini location
-my $script_location = `dirname $0`;
+my $script_location = "/etc/homer";
 $script_location =~ s/^\s+|\s+$//g;
 my $default_ini = $script_location."/rotation.ini";
 
--- homer-api-5.0.6/scripts/homer_mysql_rotate.pl
+++ homer-api-5.0.6.alpine/scripts/homer_mysql_rotate.pl
@@ -30,7 +30,7 @@
 $| =1;
 
 # Determine path and set default rotation.ini location
-my $script_location = `dirname $0`;
+my $script_location = "/etc/homer";
 $script_location =~ s/^\s+|\s+$//g;
 my $default_ini = $script_location."/rotation.ini";
 
--- homer-api-5.0.6/scripts/homer_rotate
+++ homer-api-5.0.6.alpine/scripts/homer_rotate
@@ -3,7 +3,7 @@
 # Set correct bin path if we are running as a cron job
 PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
 
-bin_dir=`dirname $0`
+bin_dir=/usr/share/homer-api/scripts
 programm="$bin_dir/homer_mysql_rotate.pl"
 config="$bin_dir/rotation.ini"