mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-06-10 21:26:52 +01:00
fix(pbs/pve): guard sed against missing /etc/apt/sources.list (#14222)
This commit is contained in:
committed by
GitHub
parent
7733ac2806
commit
683231127c
@@ -57,7 +57,9 @@ start_routines() {
|
||||
yes)
|
||||
msg_info "Switching to Debian 13 (Trixie) Sources"
|
||||
rm -f /etc/apt/sources.list.d/*.list
|
||||
sed -i '/proxmox/d;/bookworm/d' /etc/apt/sources.list || true
|
||||
if [ -f /etc/apt/sources.list ]; then
|
||||
sed -i '/proxmox/d;/bookworm/d' /etc/apt/sources.list
|
||||
fi
|
||||
cat >/etc/apt/sources.list.d/debian.sources <<EOF
|
||||
Types: deb
|
||||
URIs: http://deb.debian.org/debian
|
||||
|
||||
Reference in New Issue
Block a user