#!/bin/bash cd /srv/enigmatick if [[ -z ${ENIGMATICK_ROLE} ]]; then echo "Assuming server role..." ./enigmatick migrate && ./enigmatick server else if [ "$ENIGMATICK_ROLE" == "runner" ]; then ./enigmatick runner else ./enigmatick migrate && ./enigmatick server fi fi