#!/bin/sh

#If startup command is defined use it
if ! test -z "$MYCROFT_START_CMD"; then
	$MYCROFT_START_CMD
elif [ -x /opt/mycroft-core/start-mycroft.sh ]; then
	cd /opt/mycroft-core || exit
	./start-mycroft.sh all
else
	# Use default git install location
	cd "$HOME/mycroft-core" || exit
	./start-mycroft.sh all
fi

