advisory-circular/advisorycircular.sh

11 lines
284 B
Bash
Raw Normal View History

2020-05-04 00:16:17 +00:00
#!/bin/bash
set -e
dir=$(dirname "$0")
config_dir=/etc/advisorycircular
instance="$1"
config_path="$config_dir"/"$instance".conf
secrets_path="$config_dir"/"$instance".secret
"$dir"/intervalexec 10 node $dir/out/advisorycircular.js --config "$config_path" --secrets "$secrets_path"