From 1c32fee2994021d20eda7ad020f2529ab90e229d Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Fri, 21 Aug 2015 16:52:29 +0200 Subject: use downloaded config in default setup --- config.php | 4 ++-- configs/.gitignore | 2 ++ configs/download.sh | 7 +++++++ 3 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 configs/.gitignore create mode 100755 configs/download.sh diff --git a/config.php b/config.php index 5517a4d..38c2006 100644 --- a/config.php +++ b/config.php @@ -91,7 +91,7 @@ $GLOBALS['CONFIG']['CONFERENCE'] = array( * Wird beides aktiviert, hat der externe Link Vorrang! * Wird beides auskommentiert, wird der Link nicht angezeigt */ - 'RELIVE_JSON' => 'http://cdn.c3voc.de/releases/relive/index.json', + 'RELIVE_JSON' => 'configs/index.json', /** * APCU-Cache-Zeit in Sekunden @@ -479,7 +479,7 @@ $GLOBALS['CONFIG']['SCHEDULE'] = array( * aufhören zu funktionieren. Wenn die Quelle unverlässlich ist ;) sollte ein * externer HTTP-Cache vorgeschaltet werden. */ - 'URL' => 'http://events.ccc.de/congress/2014/Fahrplan/schedule.xml', + 'URL' => 'configs/schedule.xml', /** * Nur die angegebenen Räume aus dem Fahrplan beachten diff --git a/configs/.gitignore b/configs/.gitignore new file mode 100644 index 0000000..67c51fe --- /dev/null +++ b/configs/.gitignore @@ -0,0 +1,2 @@ +*.xml +*.json diff --git a/configs/download.sh b/configs/download.sh new file mode 100755 index 0000000..6010291 --- /dev/null +++ b/configs/download.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +# fahrplan +wget -q "http://events.ccc.de/congress/2014/Fahrplan/schedule.xml" -O /tmp/schedule.xml && mv /tmp/schedule.xml schedule.xml + +# vod json +wget -q "http://cdn.c3voc.de/releases/relive/index.json" -O /tmp/vod.json && mv /tmp/vod.json vod.json -- cgit v1.2.3