apt-setup: yet another fix on finish-install.d

This commit is contained in:
Luis Guzmán 2025-08-27 21:24:44 -06:00
parent c6b9260780
commit b0b9f1a548
4 changed files with 19 additions and 12 deletions

View file

@ -0,0 +1,11 @@
#!/bin/sh
set -e
LEGACY=/target/etc/apt/sources.list
SD=/target/etc/apt/sources.list.d
if ls "$SD"/*.sources >/dev/null 2>&1; then
MSG="# Trisquel sources have moved to /etc/apt/sources.list.d/trisquel.sources"
printf '%s\n' "$MSG" > "$LEGACY"
fi
exit 0