Correcting wrong logic on handling secure apt.
This commit is contained in:
parent
055e965427
commit
e994ff8771
|
@ -96,12 +96,12 @@ case "${1}" in
|
||||||
# Configuring apt secure
|
# Configuring apt secure
|
||||||
case "${LH_APT_SECURE}" in
|
case "${LH_APT_SECURE}" in
|
||||||
enabled)
|
enabled)
|
||||||
echo "APT::Get::AllowUnauthenticated \"true\";" > chroot/etc/apt/apt.conf.d/00secure
|
echo "APT::Get::AllowUnauthenticated \"false\";" > chroot/etc/apt/apt.conf.d/00secure
|
||||||
echo "Aptitude::CmdLine::Ignore-Trust-Violations \"false\";" >> chroot/etc/apt/apt.conf.d/00secure
|
echo "Aptitude::CmdLine::Ignore-Trust-Violations \"false\";" >> chroot/etc/apt/apt.conf.d/00secure
|
||||||
;;
|
;;
|
||||||
|
|
||||||
disabled)
|
disabled)
|
||||||
echo "APT::Get::AllowUnauthenticated \"false\";" > chroot/etc/apt/apt.conf.d/00secure
|
echo "APT::Get::AllowUnauthenticated \"true\";" > chroot/etc/apt/apt.conf.d/00secure
|
||||||
echo "Aptitude::CmdLine::Ignore-Trust-Violations \"true\";" >> chroot/etc/apt/apt.conf.d/00secure
|
echo "Aptitude::CmdLine::Ignore-Trust-Violations \"true\";" >> chroot/etc/apt/apt.conf.d/00secure
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
Loading…
Reference in New Issue