Skip to content
This repository has been archived by the owner on Apr 9, 2020. It is now read-only.

Commit

Permalink
bin/sdr-preservation-core_status.sh - utility script to report robot …
Browse files Browse the repository at this point in the history
…status
  • Loading branch information
dazza-codes committed Jul 5, 2017
1 parent 6cfb39f commit d213725
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions bin/sdr-preservation-core_status.sh
@@ -0,0 +1,19 @@
#!/bin/bash

# The ROBOT_ENVIRONMENT values here should match the
# environment files in the shared configs at
# https://github.com/sul-dlss/sdr-configs/tree/master/sdr-preservation-core/config/environments

if hostname | egrep -q '\-dev'; then
export ROBOT_ENVIRONMENT='integration'
fi
if hostname | egrep -q '\-test|\-stage'; then
export ROBOT_ENVIRONMENT='test'
fi
if hostname | egrep -q '\-prod'; then
export ROBOT_ENVIRONMENT='production'
fi

echo "Using ROBOT_ENVIRONMENT=$ROBOT_ENVIRONMENT"
cd ~/sdr-preservation-core/current
bundle exec controller status

0 comments on commit d213725

Please sign in to comment.