Skip to content

Commit

Permalink
add more core locations check
Browse files Browse the repository at this point in the history
  • Loading branch information
AIIX committed Dec 13, 2021
1 parent 0ca9150 commit e699dbb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions data/mycroft-gui-core-loader.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
#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 "${MYCROFT_CORE_DIR}" || exit
Expand Down
3 changes: 3 additions & 0 deletions data/mycroft-gui-core-stop.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
#If stop command is defined use it
if ! test -z "$MYCROFT_STOP_CMD"; then
$MYCROFT_STOP_CMD
elif [ -x /opt/mycroft-core/stop-mycroft.sh ]; then
cd /opt/mycroft-core || exit
./stop-mycroft.sh
else
# Use default git install
cd "${MYCROFT_CORE_DIR}"|| exit
Expand Down

0 comments on commit e699dbb

Please sign in to comment.