aports/testing/homer-api/homer-move-config2etc.patch
Leonardo Arena 3bb9844308 testing/homer-api: new aport
HOMER API, a robust, carrier-grade, scalable SIP Capture system and Monitoring Application
2016-01-12 09:33:55 +00:00

34 lines
918 B
Diff

--- a/api/configuration.php
+++ b/api/configuration.php
@@ -25,7 +25,7 @@
/* INCLUDE preferences */
-include_once("preferences.php");
+include_once("/etc/homer/preferences.php");
endif;
--- a/api/index.php
+++ b/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);
--- a/scripts/homer_rotate
+++ b/scripts/homer_rotate
@@ -5,7 +5,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
new_table="$bin_dir/homer_mysql_new_table.pl"
programm="$bin_dir/homer_mysql_partrotate_unixtimestamp.pl"