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:
parent
07c59a1b0d
commit
110498e5b8
@ -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
|
||||
#
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user