#! /usr/bin/env sh DIR="$( cd "$( dirname "${0}" )" >/dev/null 2>&1 && pwd )" export NODE_PATH="${DIR}" echo "NODE_ENV: ${NODE_ENV}" echo "NODE_PATH: ${NODE_PATH}" echo "LOG_LEVEL: ${LOG_LEVEL}" echo "Running build version: $(cat build.info)" case $1 in run) echo "Baphomet Starting..." node index.js echo "...Baphomet Shutdown" ;; *) echo "\"$1\" is an unrecognized command" ;; esac