Skip to content

Commit

Permalink
v8.0
Browse files Browse the repository at this point in the history
- DietPi-Software | Mycroft AI: Resolved an issue on Bullseye (and above) systems where "mycroft-cli-client" command fails with a permissions issue, even as root user. Many thanks to @berndverhofstadt for reporting this issue: #5100
  • Loading branch information
MichaIng committed Dec 19, 2021
1 parent fb8ca13 commit 0f99ab8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Fixes:
- DietPi-Software | Docker: Resolved an issue where the install was aborted due to an incorrect check for missing kernel modules. Many thanks to @dragonandy for reporting this issue: https://github.com/MichaIng/DietPi/issues/5061
- DietPi-Software | Pi-hole: Resolved an issue where the teleporter import log was not shown but denied by the X-Frame-Options header: https://discourse.pi-hole.net/t/unable-to-restore-teleporter-backup-fresh-install-no-funky-changes-made/51573
- DietPi-Software | Blynk Server: Resolved an issue on ARMv6 RPi models where the install failed as the latest Blynk Server release does not contain a Java 8 build.
- DietPi-Software | Mycroft AI: Resolved an issue on Bullseye (and above) systems where "mycroft-cli-client" command fails with a permissions issue, even as root user. Many thanks to @berndverhofstadt for reporting this issue: https://github.com/MichaIng/DietPi/issues/5100

As always, many smaller code performance and stability improvements, visual and spelling fixes have been done, too much to list all of them here. Check out all code changes of this release on GitHub: https://github.com/MichaIng/DietPi/pull/XXXX

Expand Down
14 changes: 8 additions & 6 deletions dietpi/dietpi-software
Original file line number Diff line number Diff line change
Expand Up @@ -11699,11 +11699,10 @@ _EOF_

# Git clone to DietPi userdata
G_EXEC cd /mnt/dietpi_userdata
if [[ ! -d 'mycroft-core/.git' ]]; then

if [[ ! -d 'mycroft-core/.git' ]]
then
[[ -d 'mycroft-core' ]] && G_EXEC rm -R mycroft-core
G_THREAD_START git clone -b master --depth 1 https://github.com/MycroftAI/mycroft-core.git

fi

# APT deps
Expand Down Expand Up @@ -11756,9 +11755,12 @@ ExecStop=/mnt/dietpi_userdata/mycroft-core/stop-mycroft.sh
[Install]
WantedBy=multi-user.target
_EOF_
# Add Mycroft binaries to $PATH
G_EXEC eval "echo -e '#!/bin/dash\nexport PATH=$PATH:/mnt/dietpi_userdata/mycroft-core/bin' > /etc/bashrc.d/mycroft.sh"

# Add Mycroft binaries to $PATH and create CLI alias: https://github.com/MichaIng/DietPi/issues/5100
cat << '_EOF_' > /etc/bashrc.d/mycroft.sh
#!/bin/dash
case "$PATH" in *'/mnt/dietpi_userdata/mycroft-core/bin'*) :;; *) export PATH="$PATH:/mnt/dietpi_userdata/mycroft-core/bin";; esac
alias mycroft-cli-client='sudo -u mycroft /mnt/dietpi_userdata/mycroft-core/bin/mycroft-cli-client'
_EOF_
# Enable ALSA automatic software conversion plugin
local soundcard=$(sed -n '/^[[:blank:]]*CONFIG_SOUNDCARD=/{s/^[^=]*=//p;q}' /boot/dietpi.txt)
soundcard=${soundcard%-eq} soundcard=${soundcard%-plug}
Expand Down

0 comments on commit 0f99ab8

Please sign in to comment.