Skip to content

Commit

Permalink
v9.7
Browse files Browse the repository at this point in the history
- DietPi-Installer | Do remove again directories from /etc/apt/sources.list.d. No directory has any reason to be within it.
  • Loading branch information
MichaIng committed Aug 25, 2024
1 parent 393f77e commit 387706a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .build/images/dietpi-installer
Original file line number Diff line number Diff line change
Expand Up @@ -1050,7 +1050,7 @@ setenv rootuuid "true"' /boot/boot.cmd
[[ -f '/etc/apt/trusted.gpg~' ]] && G_EXEC rm '/etc/apt/trusted.gpg~'

# Remove obsolete lists
find /etc/apt/sources.list.d -mindepth 1 ! -name 'dietpi.list' -exec rm -v {} +
find /etc/apt/sources.list.d -mindepth 1 ! -name 'dietpi.list' -exec rm -Rv {} +

if dpkg --compare-versions "$(dpkg-query -Wf '${Version}' base-files)" gt 20
then
Expand Down Expand Up @@ -1410,7 +1410,7 @@ _EOF_
[[ -f '/etc/apt/trusted.gpg~' ]] && G_EXEC rm '/etc/apt/trusted.gpg~'

# Remove obsolete components from Armbian list and connect via HTTPS
find /etc/apt/sources.list.d -mindepth 1 ! -name 'dietpi.list' -exec rm -v {} +
find /etc/apt/sources.list.d -mindepth 1 ! -name 'dietpi.list' -exec rm -Rv {} +
G_EXEC eval "echo 'deb https://apt.armbian.com ${DISTRO_TARGET_NAME/bullseye/bookworm} main' > /etc/apt/sources.list.d/dietpi-armbian.list"

# Skip creating kernel symlinks and remove existing ones
Expand Down

0 comments on commit 387706a

Please sign in to comment.