mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-08-14 00:42:23 +00:00
update common funtions
This commit is contained in:
parent
d6e0519a3d
commit
75c12e2d4b
@ -223,7 +223,6 @@ cleanup_duplicate_repos_pve9() {
|
||||
if grep -q "^deb.*$url_match" "$sources_file"; then
|
||||
sed -i "/^deb.*$url_match/s/^/# /" "$sources_file"
|
||||
cleaned_count=$((cleaned_count + 1))
|
||||
msg_info "$(translate "Commented $src lines in sources.list (using .sources format)")"
|
||||
fi
|
||||
fi
|
||||
|
||||
@ -232,7 +231,6 @@ cleanup_duplicate_repos_pve9() {
|
||||
if grep -q "^deb.*$url_match" "$list_file"; then
|
||||
sed -i "/^deb.*$url_match/s/^/# /" "$list_file"
|
||||
cleaned_count=$((cleaned_count + 1))
|
||||
msg_info "$(translate "Commented $src lines in $(basename "$list_file") (using .sources format)")"
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
@ -160,7 +160,6 @@ EOF
|
||||
|
||||
cleanup_duplicate_repos
|
||||
|
||||
msg_info "$(translate "Updating package lists...")"
|
||||
update_output=$(apt-get update 2>&1)
|
||||
update_exit_code=$?
|
||||
|
||||
@ -186,7 +185,7 @@ EOF
|
||||
fi
|
||||
|
||||
|
||||
msg_info "$(translate "Verifying Proxmox VE 9.x repositories...")"
|
||||
|
||||
if apt policy 2>/dev/null | grep -q "${TARGET_CODENAME}.*pve-no-subscription"; then
|
||||
msg_ok "$(translate "Proxmox VE 9.x repositories verified")"
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user