Skip to content

Commit

Permalink
v8.5
Browse files Browse the repository at this point in the history
- DietPi-Software | Spotifyd: Resolved an issue where fresh installs failed because of a missing parent directory. Many thanks to @C0ntroller for reporting this issue: #5484
  • Loading branch information
MichaIng committed May 12, 2022
1 parent 71a4db2 commit 1ef7461
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 15 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ v8.5
Changes:

Fixes:
- DietPi-Software | Spotifyd: Resolved an issue where fresh installs failed because of a missing parent directory. Many thanks to @C0ntroller for reporting this issue: https://github.com/MichaIng/DietPi/issues/5484

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
20 changes: 5 additions & 15 deletions dietpi/dietpi-software
Original file line number Diff line number Diff line change
Expand Up @@ -12097,21 +12097,10 @@ _EOF_

Banner_Installing

# ARMv6
local fallback_url='https://github.com/Spotifyd/spotifyd/releases/download/v0.3.3/spotifyd-linux-armv6-slim.tar.gz'
local file='spotifyd-linux-armv6-slim'

local file='spotifyd-linux-armv6-slim' # ARMv6
case $G_HW_ARCH in
# ARMv7
2)
fallback_url="https://github.com/Spotifyd/spotifyd/releases/download/v0.3.3/spotifyd-linux-armhf-full.tar.gz"
file='spotifyd-linux-armhf-full'
;;
# x86_64
10)
fallback_url="https://github.com/Spotifyd/spotifyd/releases/download/v0.3.3/spotifyd-linux-full.tar.gz"
file='spotifyd-linux-full'
;;
2) file='spotifyd-linux-armhf-full';; # ARMv7
10) file='spotifyd-linux-full';; # x86_64
*) :;;
esac

Expand All @@ -12121,6 +12110,7 @@ _EOF_
# x86_64 only deps: Both ARM binaries are not compiled against these. dbus would be required for MPRIS support, but let's keep it slim for now.
(( $G_HW_ARCH == 10 )) && aDEPS=('libdbus-1-3' 'libpulse0')

local fallback_url="https://github.com/Spotifyd/spotifyd/releases/download/v0.3.3/$file.tar.gz"
Download_Install "$(curl -sSfL 'https://api.github.com/repos/Spotifyd/spotifyd/releases/latest' | mawk -F\" "/\"browser_download_url\": .*\/$file\.tar\.gz\"/{print \$4}")" /opt/spotifyd

# User
Expand All @@ -12129,7 +12119,7 @@ _EOF_
# Config: Do not touch on reinstall
if [[ ! -f '/mnt/dietpi_userdata/spotifyd/spotifyd.conf' ]]
then
[[ -d '/mnt/dietpi_userdata/spotifyd/cache' ]] || G_EXEC mkdir /mnt/dietpi_userdata/spotifyd/cache
[[ -d '/mnt/dietpi_userdata/spotifyd/cache' ]] || G_EXEC mkdir -p /mnt/dietpi_userdata/spotifyd/cache
dps_index=$software_id Download_Install 'spotifyd.conf' /mnt/dietpi_userdata/spotifyd/spotifyd.conf
G_EXEC chmod 0600 /mnt/dietpi_userdata/spotifyd/spotifyd.conf
fi
Expand Down

0 comments on commit 1ef7461

Please sign in to comment.