config.sh 361 B

123456789101112
  1. {% macro config_script() -%}
  2. #!/bin/sh
  3. if [ ! -f /home/agent/data/config/config.json ]; then
  4. echo "Fetching default config..."
  5. curl --output /home/agent/data/config/config.json https://raw.githubusercontent.com/kerberos-io/agent/master/machinery/data/config/config.json
  6. exit 0
  7. else
  8. echo "Config already exists. Skipping..."
  9. exit 0
  10. fi
  11. {%- endmacro %}