aboutsummaryrefslogtreecommitdiff
path: root/src/update_database.nim
diff options
context:
space:
mode:
authorOskari Timperi <oskari.timperi@iki.fi>2019-11-21 20:14:15 +0200
committerOskari Timperi <oskari.timperi@iki.fi>2019-11-21 20:14:15 +0200
commit18c52de216229ece8433a979abfcc28c9480a895 (patch)
treeafb12fafdd668aaa671a7c828361771eda1a2c91 /src/update_database.nim
parent716ded259615b5517bbed2a8c69b5879dbab4fee (diff)
downloadweather-18c52de216229ece8433a979abfcc28c9480a895.tar.gz
weather-18c52de216229ece8433a979abfcc28c9480a895.zip
Documentation
Diffstat (limited to 'src/update_database.nim')
-rw-r--r--src/update_database.nim10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/update_database.nim b/src/update_database.nim
index a5e5078..2c2c7e3 100644
--- a/src/update_database.nim
+++ b/src/update_database.nim
@@ -19,15 +19,13 @@
## The program should be run with an accompanying CGI script as the main driver. The web server will
## execute the script which looks like this:
##
-## #!/path/to/update_database
-## databaseDir = /path/to/where/databases/are
-##
-## This will execute update_database with one argument: the path to this script file.
-## update_database will read this script and parse it as a configuration file. The databaseDir
-## option should point to where the .rrd databases are stored.
+## #!/bin/sh
+## /path/to/update_database
##
## The update_database program will use the ``alias`` from measurements as the database name (with
## ``.rrd`` extension).
+##
+## Databases are found relative to this executable, from ``../database``.
import json
import os