24 lines
579 B
Bash
Executable File
24 lines
579 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
# or more contributor license agreements. Licensed under the Elastic License;
|
|
# you may not use this file except in compliance with the Elastic License.
|
|
|
|
source "`dirname "$0"`"/../elasticsearch-env
|
|
|
|
source "`dirname "$0"`"/x-pack-env
|
|
|
|
cd "$ES_HOME" > /dev/null
|
|
|
|
"$JAVA" \
|
|
$ES_JAVA_OPTS \
|
|
-Des.path.home="$ES_HOME" \
|
|
-Des.path.conf="$CONF_DIR" \
|
|
-cp "$ES_CLASSPATH" \
|
|
org.elasticsearch.xpack.security.authc.file.tool.UsersTool \
|
|
"$@"
|
|
|
|
status=$?
|
|
cd - > /dev/null
|
|
exit $status
|