Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

typo in entrypoint man for "cortex-hostnames" #2114

Closed
cyberpescadito opened this issue Jul 12, 2021 · 0 comments
Closed

typo in entrypoint man for "cortex-hostnames" #2114

cyberpescadito opened this issue Jul 12, 2021 · 0 comments
Assignees
Milestone

Comments

@cyberpescadito
Copy link

Hi,

In entrypoint script file, the man refer to "cortex-hostnames" parameter as "cortex-hostname":

function usage {
  cat <<- _EOF_
    Available options:
    --config-file <file>                        | configuration file path
    --no-config                                 | do not try to configure TheHive (add secret and elasticsearch)
    --no-config-secret                          | do not add random secret to configuration
    --secret <secret>                           | secret to secure sessions
    --show-secret                               | show the generated secret
    --no-config-db                              | do not configure database automatically
    --cql-hostnames <host>,<host>,...           | resolve these hostnames to find cassandra instances
    --cql-username <username>                   | username of cassandra database
    --cql-password <password>                   | password of cassandra database
    --bdb-directory <path>                      | location of local database, if cassandra is not used (default: /data/db)
    --no-config-storage                         | do not configure storage automatically
    --hdfs-url <url>                            | url of hdfs name node
    --storage-directory <path>                  | location of local storage, if hdfs is not used (default: /data/files)
    --no-config-cortex                          | do not add Cortex configuration
    --cortex-proto <proto>                      | define protocol to connect to Cortex (default: http)
    --cortex-port <port>                        | define port to connect to Cortex (default: 9001)
    --cortex-hostname <host>,<host>,...         | resolve this hostname to find Cortex instances
    --cortex-keys <key>,<key>,...               | define Cortex key
    migrate <param> <param> ...                 | run migration tool
    cloner <param> <param> ...                  | run cloner tool
_EOF_
  exit 1
}


STOP=0
while test $# -gt 0 -a "${STOP}" = 0
do
  case "$1" in
    "--config-file")       shift; CONFIG_FILE=$1 ;;
    "--no-config")         CONFIG=0 ;;
    "--no-config-secret")  CONFIG_SECRET=0 ;;
    "--secret")            shift; SECRET=$1 ;;
    "--show-secret")       SHOW_SECRET=1 ;;
    "--no-config-db")      CONFIG_DB=0 ;;
    "--cql-hostnames")     shift; CQL_HOSTNAMES=$1 ;;
    "--cql-username")      shift; CQL_USERNAME=$1 ;;
    "--cql-password")      shift; CQL_PASSWORD=$1 ;;
    "--bdb-directory")     shift; BDB_DIRECTORY=$1 ;;
    "--index-directory")   shift; INDEX_DIRECTORY=$1 ;;
    "--no-config-storage") CONFIG_STORAGE=0 ;;
    "--hdfs-url")          shift; HDFS_URL=$1 ;;
    "--storage-directory") shift; STORAGE_DIRECTORY=$1 ;;
    "--no-config-cortex")  CONFIG_CORTEX=0 ;;
    "--cortex-proto")      shift; CORTEX_PROTO=$1 ;;
    "--cortex-port")       shift; CORTEX_PORT=$1 ;;
    "--cortex-hostnames")  shift; CORTEX_HOSTNAMES=$1 ;;
    "--cortex-keys")       shift; CORTEX_KEYS=$1 ;;
    "--")                  STOP=1 ;;
    "migrate")             MIGRATE=1; STOP=1 ;;
    "cloner")              CLONER=1; STOP=1 ;;
    *)                     echo param is -"$1"-; usage
  esac
  shift
done
@To-om To-om transferred this issue from TheHive-Project/Docker-Templates Jul 12, 2021
@To-om To-om self-assigned this Jul 12, 2021
@To-om To-om added this to the 4.1.8 milestone Jul 12, 2021
To-om added a commit that referenced this issue Jul 19, 2021
@To-om To-om closed this as completed Jul 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants