QuickFix: A quick fix to make sure the pre-installed skills can load.

This it temporarily till we go the full XDG compliant way.
This commit is contained in:
j1nx 2021-01-06 18:07:01 +01:00
parent f36b651595
commit 1f78a12c9d
3 changed files with 14 additions and 0 deletions

View File

@ -1,4 +1,5 @@
#!/bin/bash
#
/usr/sbin/resizeSD &&
/usr/sbin/gitstash &&
rm /etc/firstboot

View File

@ -13,6 +13,7 @@ FIRSTBOOT_SERVICE_LICENSE_FILES = LICENSE
define FIRSTBOOT_SERVICE_INSTALL_TARGET_CMDS
$(INSTALL) -m 0755 $(@D)/resizeSD $(TARGET_DIR)/usr/sbin/
$(INSTALL) -m 0755 $(@D)/firstboot $(TARGET_DIR)/usr/sbin/
$(INSTALL) -m 0755 $(@D)/gitstash $(TARGET_DIR)/usr/sbin/
$(INSTALL) -D -m 644 $(@D)/firstboot.service \
$(TARGET_DIR)/usr/lib/systemd/system/firstboot.service
touch $(TARGET_DIR)/etc/firstboot

View File

@ -0,0 +1,12 @@
#!/bin/bash
#
printf "Git stashing pre-installed skills ..."
cd /opt/mycroft/.skills-rep && git stash
cd /opt/mycroft/skills/skill-balena-wifi-setup && git stash
cd /opt/mycroft/skills/skill-ovos-enclosure && git stash
cd /opt/mycroft/skills/skill-ovos-mycroftgui && git stash
cd /opt/mycroft/skills/skill-ovos-pairing && git stash
chown -R mycroft.mycroft /opt/mycroft
echo "[OK]"