Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz@curii.com>
+loadconfig() {
+ CONFIG_FILE=local.params
+ if ! test -s $CONFIG_FILE ; then
+ echo "Must be run from arvados-setup, maybe you need to 'initialize' first?"
+ fi
+ source ${CONFIG_FILE}
+}
+
subcmd="$1"
if test -n "$subcmd" ; then
shift
subcmd="$1"
if test -n "$subcmd" ; then
shift
- CONFIG_FILE=local.params
- if ! test -s $CONFIG_FILE ; then
- echo "Must be run from arvados-setup, maybe you need to 'initialize' first?"
- fi
+ diagnostics)
+ loadconfig
+
+ if ! which arvados-client ; then
+ apt-get install arvados-client
+ fi
+
+ export ARVADOS_API_HOST="${CONTROLLER_INT_IP}"
+ export ARVADOS_API_TOKEN="$SYSTEM_ROOT_TOKEN"
+
+ arvados-client diagnostics -internal-client
*)
echo "Arvados installer"
echo ""
*)
echo "Arvados installer"
echo ""