Skip to content

Commit

Permalink
v8.24
Browse files Browse the repository at this point in the history
- DietPi-Software | Mosquitto: Install and migrate its APT repository to Bookworm suite, which is now available
- dietpi-bookworm-upgrade | Keep Bookworm suite for RPi and Mosquitto repositories, which are now both available
  • Loading branch information
MichaIng committed Oct 24, 2023
1 parent 04039f7 commit 165352f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
2 changes: 0 additions & 2 deletions .meta/dietpi-bookworm-upgrade
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,8 @@ G_EXEC sed -i 's/bullseye/bookworm/g' /etc/apt/sources.list
[[ -f '/etc/apt/sources.list.d/dietpi-mympd.list' ]] && G_EXEC sed -i 's/Debian_11/Debian_Testing/' /etc/apt/sources.list.d/dietpi-mympd.list

G_DIETPI-NOTIFY 2 'Reverting some package lists to Bullseye which have no Bookworm suite (yet)'
[[ -f '/etc/apt/sources.list.d/raspi.list' ]] && G_EXEC sed -i 's/bookworm/bullseye/' /etc/apt/sources.list.d/raspi.list
[[ -f '/etc/apt/sources.list.d/radxa.list' ]] && G_EXEC sed -i 's/bookworm/bullseye/g' /etc/apt/sources.list.d/radxa.list
[[ -f '/etc/apt/sources.list.d/dietpi-radxa.list' ]] && G_EXEC sed -i 's/bookworm/bullseye/g' /etc/apt/sources.list.d/dietpi-radxa.list
[[ -f '/etc/apt/sources.list.d/dietpi-mosquitto.list' ]] && G_EXEC sed -i 's/bookworm/bullseye/' /etc/apt/sources.list.d/dietpi-mosquitto.list
[[ -f '/etc/apt/sources.list.d/influxdb.list' ]] && G_EXEC sed -i 's/bookworm/bullseye/' /etc/apt/sources.list.d/influxdb.list
[[ -f '/etc/apt/sources.list.d/mopidy.list' ]] && G_EXEC sed -i 's/bookworm/bullseye/' /etc/apt/sources.list.d/mopidy.list

Expand Down
10 changes: 10 additions & 0 deletions .update/pre-patches
Original file line number Diff line number Diff line change
Expand Up @@ -334,5 +334,15 @@ then
[[ -f '/etc/apt/trusted.gpg.d/dietpi-sonarr.gpg' ]] && G_EXEC chmod 0644 /etc/apt/trusted.gpg.d/dietpi-sonarr.gpg
fi

# v8.24
if (( $G_DIETPI_VERSION_CORE < 8 || ( $G_DIETPI_VERSION_CORE == 8 && $G_DIETPI_VERSION_SUB < 24 ) ))
then
if [[ $G_DISTRO -ge 7 && -f '/etc/apt/sources.list.d/dietpi-mosquitto.list' ]]
then
G_DIETPI-NOTIFY 2 'Migrating Mosquitto APT repository to Bookworm'
G_EXEC sed -i 's/bullseye/bookworm/' /etc/apt/sources.list.d/dietpi-mosquitto.list
fi
fi

exit 0
}
4 changes: 2 additions & 2 deletions dietpi/dietpi-software
Original file line number Diff line number Diff line change
Expand Up @@ -5171,7 +5171,7 @@ _EOF_
# - This needs to be done prior to APT install, since this would otherwise install a default config file as well.
[[ -f '/etc/mopidy/mopidy.conf' ]] || dps_index=$software_id Download_Install 'mopidy.conf' /etc/mopidy/mopidy.conf

# Install official APT repo whre available
# Install official APT repo where available
if (( $G_HW_ARCH != 11 ))
then
# APT key
Expand Down Expand Up @@ -6834,7 +6834,7 @@ _EOF_
then
# Use official APT repository where available: https://repo.mosquitto.org/debian/pool/main/m/mosquitto/
# - Current builds are not ARMv6 compatible: https://github.com/MichaIng/DietPi/issues/5140
if (( $G_DISTRO < 7 )) && [[ $G_HW_ARCH == 2 || $G_HW_ARCH == 10 ]]
if (( $G_DISTRO < 8 )) && [[ $G_HW_ARCH == 2 || $G_HW_ARCH == 10 ]]
then
# APT key
local url='https://repo.mosquitto.org/debian/mosquitto-repo.gpg.key'
Expand Down

0 comments on commit 165352f

Please sign in to comment.