1
0

entrypoint.sh 287 B

1234567891011121314
  1. #!/usr/bin/env bash
  2. set -e
  3. CONF_DIR="/etc/cjdns"
  4. if [ ! -f "$CONF_DIR/cjdroute.conf" ]; then
  5. echo "generate $CONF_DIR/cjdroute.conf"
  6. conf=$(cjdroute --genconf | cjdroute --cleanconf)
  7. echo $conf > "$CONF_DIR/cjdroute.conf"
  8. fi
  9. cjdroute --nobg < "$CONF_DIR/cjdroute.conf"
  10. exit $?