Skip to content
Snippets Groups Projects
Unverified Commit 5b56118d authored by Michal 'vorner' Vaner's avatar Michal 'vorner' Vaner
Browse files

Bootstrap script for the feeder

Gets data from database to feed it.
parent 2894f633
No related branches found
No related tags found
No related merge requests found
#!/bin/sh
set -ex
cd /home/hpf
psql -d turris -c "\copy (SELECT remote, 23, start_time FROM ssh_sessions WHERE start_time > CURRENT_TIMESTAMP AT TIME ZONE 'UTC' - INTERVAL '5 hours') TO honey.csv WITH CSV"
./turris_to_hpfeeds.py
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment