File indexing completed on 2024-11-10 05:11:08

0001 #!/bin/sh
0002 #If stop command is defined use it
0003 if ! test -z "$MYCROFT_STOP_CMD"; then
0004         $MYCROFT_STOP_CMD
0005 elif [ -x /opt/mycroft-core/stop-mycroft.sh ]; then
0006         cd /opt/mycroft-core || exit
0007         ./stop-mycroft.sh
0008 else
0009         # Use default git install
0010         cd "${MYCROFT_CORE_DIR}"|| exit
0011         ./stop-mycroft.sh
0012 fi