2020-05-04 00:16:17 +00:00
|
|
|
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
|
|
|
|
dir=$(dirname "$0")
|
|
|
|
instance="$1"
|
2020-05-04 03:10:54 +00:00
|
|
|
config_dir=/etc/advisorycircular
|
2020-05-09 21:27:42 +00:00
|
|
|
run_dir=/var/lib/advisorycircular
|
2020-05-04 21:13:48 +00:00
|
|
|
sqb_path=/usr/local/share/advisorycircular/clean-basestation.sqb
|
2020-05-04 00:16:17 +00:00
|
|
|
|
2020-05-04 03:10:54 +00:00
|
|
|
config_path="$config_dir"/"$instance"-config.yaml
|
|
|
|
secrets_path="$config_dir"/"$instance"-secrets.yaml
|
2020-05-26 00:52:39 +00:00
|
|
|
history_path="$run_dir"/"$instance"-history.json
|
2020-05-28 19:35:11 +00:00
|
|
|
(cd "$run_dir" && "$dir"/intervalexec 15 node $dir/out/advisorycircular.js --config "$config_path" --secrets "$secrets_path" --basestation-sqb "$sqb_path" --history "$history_path" --log-prefix "$instance")
|