mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-06-28 04:06:54 +00:00
Update customizable_post_install.sh
This commit is contained in:
parent
94b26c6a79
commit
6cedd5a5f3
@ -178,38 +178,38 @@ apt_upgrade() {
|
|||||||
# Configure main Debian repositories
|
# Configure main Debian repositories
|
||||||
# ======================================================
|
# ======================================================
|
||||||
|
|
||||||
sources_file="/etc/apt/sources.list"
|
sources_file="/etc/apt/sources.list"
|
||||||
need_update=false
|
need_update=false
|
||||||
|
|
||||||
# Reemplazar ftp.es.debian.org por deb.debian.org si existe
|
# Reemplazar ftp.es.debian.org por deb.debian.org si existe
|
||||||
sed -i 's|ftp.es.debian.org|deb.debian.org|g' "$sources_file"
|
sed -i 's|ftp.es.debian.org|deb.debian.org|g' "$sources_file"
|
||||||
|
|
||||||
# Reemplazar línea incompleta de seguridad por la completa
|
# Reemplazar línea incompleta de seguridad por la completa
|
||||||
if grep -q "^deb http://security.debian.org ${OS_CODENAME}-security main contrib" "$sources_file"; then
|
if grep -q "^deb http://security.debian.org ${OS_CODENAME}-security main contrib" "$sources_file"; then
|
||||||
sed -i "s|^deb http://security.debian.org ${OS_CODENAME}-security main contrib|deb http://security.debian.org/debian-security ${OS_CODENAME}-security main contrib non-free non-f>
|
sed -i "s|^deb http://security.debian.org ${OS_CODENAME}-security main contrib|deb http://security.debian.org/debian-security ${OS_CODENAME}-security main contrib non-free non-free-firmware|" "$sources_file"
|
||||||
msg_ok "$(translate "Replaced security repository with full version")"
|
msg_ok "$(translate "Replaced security repository with full version")"
|
||||||
need_update=true
|
need_update=true
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check and add security repository (completa)
|
# Check and add security repository (completa)
|
||||||
if ! grep -q "deb http://security.debian.org/debian-security ${OS_CODENAME}-security" "$sources_file"; then
|
if ! grep -q "deb http://security.debian.org/debian-security ${OS_CODENAME}-security" "$sources_file"; then
|
||||||
echo "deb http://security.debian.org/debian-security ${OS_CODENAME}-security main contrib non-free non-free-firmware" >> "$sources_file"
|
echo "deb http://security.debian.org/debian-security ${OS_CODENAME}-security main contrib non-free non-free-firmware" >> "$sources_file"
|
||||||
need_update=true
|
need_update=true
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check and add main repository
|
# Check and add main repository
|
||||||
if ! grep -q "deb http://deb.debian.org/debian ${OS_CODENAME} " "$sources_file"; then
|
if ! grep -q "deb http://deb.debian.org/debian ${OS_CODENAME} " "$sources_file"; then
|
||||||
echo "deb http://deb.debian.org/debian ${OS_CODENAME} main contrib non-free non-free-firmware" >> "$sources_file"
|
echo "deb http://deb.debian.org/debian ${OS_CODENAME} main contrib non-free non-free-firmware" >> "$sources_file"
|
||||||
need_update=true
|
need_update=true
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check and add updates repository
|
# Check and add updates repository
|
||||||
if ! grep -q "deb http://deb.debian.org/debian ${OS_CODENAME}-updates" "$sources_file"; then
|
if ! grep -q "deb http://deb.debian.org/debian ${OS_CODENAME}-updates" "$sources_file"; then
|
||||||
echo "deb http://deb.debian.org/debian ${OS_CODENAME}-updates main contrib non-free non-free-firmware" >> "$sources_file"
|
echo "deb http://deb.debian.org/debian ${OS_CODENAME}-updates main contrib non-free non-free-firmware" >> "$sources_file"
|
||||||
need_update=true
|
need_update=true
|
||||||
fi
|
fi
|
||||||
|
|
||||||
msg_ok "$(translate "Debian repositories configured correctly")"
|
msg_ok "$(translate "Debian repositories configured correctly")"
|
||||||
|
|
||||||
# ===================================================
|
# ===================================================
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user