summaryrefslogtreecommitdiff
path: root/testing/hosts/default/usr/local/bin/init_collector
diff options
context:
space:
mode:
Diffstat (limited to 'testing/hosts/default/usr/local/bin/init_collector')
-rwxr-xr-xtesting/hosts/default/usr/local/bin/init_collector2
1 files changed, 2 insertions, 0 deletions
diff --git a/testing/hosts/default/usr/local/bin/init_collector b/testing/hosts/default/usr/local/bin/init_collector
index c522de874..df1462862 100755
--- a/testing/hosts/default/usr/local/bin/init_collector
+++ b/testing/hosts/default/usr/local/bin/init_collector
@@ -1,4 +1,6 @@
#! /bin/sh
cat /usr/local/share/strongswan/templates/database/sw-collector/sw_collector_tables.sql | sqlite3 /etc/db.d/collector.db
+sed -i "s:DEBIAN_VERSION:`cat /etc/debian_version`:" /etc/pts/collector.sql
+cat /etc/pts/collector.sql | sqlite3 /etc/db.d/collector.db
LEAK_DETECTIVE_DISABLE=1 /usr/local/sbin/sw-collector