From cb19c357cc262cfa019f46a10876197de9cf71d0 Mon Sep 17 00:00:00 2001 From: Kaarle Ritvanen Date: Tue, 21 Feb 2017 11:23:52 +0200 Subject: testing/homer-api: fix cron job --- testing/homer-api/APKBUILD | 4 ++-- testing/homer-api/rotation-ini-path.patch | 18 ++++++++++++------ 2 files changed, 14 insertions(+), 8 deletions(-) (limited to 'testing/homer-api') diff --git a/testing/homer-api/APKBUILD b/testing/homer-api/APKBUILD index da3634e40e..591205aac9 100644 --- a/testing/homer-api/APKBUILD +++ b/testing/homer-api/APKBUILD @@ -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" diff --git a/testing/homer-api/rotation-ini-path.patch b/testing/homer-api/rotation-ini-path.patch index b6f9ee3d9b..52d42f7b09 100644 --- a/testing/homer-api/rotation-ini-path.patch +++ b/testing/homer-api/rotation-ini-path.patch @@ -1,21 +1,27 @@ --- 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 ] -- cgit v1.2.3