Commit cb19c357 authored by Kaarle Ritvanen's avatar Kaarle Ritvanen

testing/homer-api: fix cron job

parent 3e7f0e92
......@@ -2,7 +2,7 @@
# Maintainer:
pkgname=homer-api
pkgver=5.0.6
pkgrel=6
pkgrel=7
pkgdesc="HOMER API"
url="https://github.com/sipcapture/homer-api"
arch="noarch"
......@@ -59,4 +59,4 @@ db() {
sha512sums="620185c19bd348ba68bad3a1992b7d673d29dcfb8a0aeea437a2d31e90f0a21cf6f46a43f0041a583a14d9403e1d8574c6040da1dba397ec2d955b8aba9010d8 homer-api-5.0.6.tar.gz
e305af57a8445b45cb1e894aa34ceea3aeedb60740a636229d470d872f9ebb835e03985faeb685180a3e2c1eae29b49c841f8cbdb4236dbf0323f905a30b0bbb homer_db_init
b7a072cee1d64ec712fb4e9b7ac4191581f9babaf92c3088b8c6bbcc6e72d3f588015894835d7cdab281ba6963dcb15e8f9197fc9ee138cb329104beac5654e7 rotation-ini-path.patch"
0328c4f645601be150f877a31a8c245908da9d9972bed6e1af50f2c43055c9f47376da30c666b6eaa0310637414f65906b88f9a339a1dfa14e1864c70b36fa77 rotation-ini-path.patch"
--- homer-api-5.0.6/scripts/homer_partremove
+++ homer-api-5.0.6.alpine/scripts/homer_partremove
@@ -5,7 +5,7 @@
@@ -3,9 +3,8 @@
# 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`
programm="$bin_dir/homer_mysql_remove_partitions.pl"
-bin_dir=`dirname $0`
-programm="$bin_dir/homer_mysql_remove_partitions.pl"
-config="$bin_dir/rotation.ini"
+programm="homer_mysql_remove_partitions.pl"
+config=/etc/homer/rotation.ini
$programm $config
--- homer-api-5.0.6/scripts/homer_rotate
+++ homer-api-5.0.6.alpine/scripts/homer_rotate
@@ -5,7 +5,7 @@
@@ -3,9 +3,8 @@
# 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`
programm="$bin_dir/homer_mysql_rotate.pl"
-bin_dir=`dirname $0`
-programm="$bin_dir/homer_mysql_rotate.pl"
-config="$bin_dir/rotation.ini"
+programm="homer_mysql_rotate.pl"
+config=/etc/homer/rotation.ini
if [ $# -ne 0 ]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment