1
0
mirror of synced 2026-01-20 17:38:02 +00:00

First check if /etc/apt/sources.list exists, then grep it. If it doesn't exist enable security updates by default

This commit is contained in:
Axel Beckert 2010-03-26 20:51:35 +01:00
parent 07c59a1b0d
commit 110498e5b8

View File

@ -78,7 +78,8 @@ E_O_APT
#
# If the host system has security support then enable that here too.
#
if ( grep ^deb.*security /etc/apt/sources.list >/dev/null 2>/dev/null ) ; then
if ( test '!' -e /etc/apt/sources.list || \
grep ^deb.*security /etc/apt/sources.list >/dev/null 2>/dev/null ) ; then
cat <<E_O_APT >> ${prefix}/etc/apt/sources.list
#