Update QBO_Installer.sh to work on a brandnew raspian (or any other) image
For those attempting to install the latest QBO software on a brandnew raspbian (or any other) image straight from https://gitlab.com/thecorpora/QBO, you've noticed that the latest QBO_Installer.sh script (v1.0) fails to do so.
Main reason is that the installer clones first the MyCroft Software in /opt/qbo/mycroft-core in INSTALL_OR_UPDATE_DEPENDENCIES before the actual QBO software in /opt/qbo in INSTALL. This causes "git clone" to error. For those who just upgrade from a previous working setup, they won't notice.
The fix is quite simply to put the MyCroft installation ...
# Install MyCroft Software
/usr/bin/git clone -b master https://github.com/MycroftAI/mycroft-core.git /opt/qbo/mycroft-core
bash /opt/qbo/mycroft-core/dev_setup.sh --allow-root
/usr/bin/pip3 install certifi monotonic
sed -i 's/paplay %1 --stream-name=mycroft-voice/aplay -D convertQBO %1/g' /opt/qbo/mycroft-core/mycroft/configuration/mycroft.conf
...after...
# Cloning repository
/usr/bin/git clone -b ${REPO_QBO_BRANCH} ${REPO_QBO} /opt/qbo
chown -R qbo:nogroup /opt/qbo
Edited by Christian Buysschaert