advisory-circular/advisorycircular.sh

14 lines
523 B
Bash
Raw Normal View History

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
run_dir=/var/run/advisorycircular
sqb_path=/usr/local/share/run/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
history_path="$run_dir"/"$instance"-history.edn
(cd "$run_dir" && "$dir"/intervalexec 10 node $dir/out/advisorycircular.js --config "$config_path" --secrets "$secrets_path" --basestation-sqb "$sqb_path" --history "$history_path")