From acf02a1269b9c191a66a7ea476f11d53d4ad0c08 Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Fri, 25 Nov 2016 07:54:49 +0100 Subject: script to renew websub subscriptions --- bin/renew-subscriptions.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 bin/renew-subscriptions.php (limited to 'bin/renew-subscriptions.php') diff --git a/bin/renew-subscriptions.php b/bin/renew-subscriptions.php new file mode 100755 index 0000000..16bc11b --- /dev/null +++ b/bin/renew-subscriptions.php @@ -0,0 +1,16 @@ +#!/usr/bin/env php +getExpiring() as $sub) { + Log::info('Expires soon: ' . $sub['sub_topic']); + passthru('./subscribe.php ' . escapeshellarg($sub['sub_topic'])); +} +?> -- cgit v1.2.3