copy keys to /etc/apt/trusted.gpg.d with appropriate extension for them to not be ignored.
This commit is contained in:
parent
5290842288
commit
8403487d4e
|
@ -222,7 +222,12 @@ then
|
||||||
do
|
do
|
||||||
if [ -e "${FILE}" ]
|
if [ -e "${FILE}" ]
|
||||||
then
|
then
|
||||||
cp ${FILE} chroot/etc/apt/trusted.gpg.d/$(basename ${FILE}).asc
|
if grep -q "PGP PUBLIC KEY BLOCK" "${FILE}"
|
||||||
|
then
|
||||||
|
cp ${FILE} chroot/etc/apt/trusted.gpg.d/$(basename ${FILE}).asc
|
||||||
|
else
|
||||||
|
cp ${FILE} chroot/etc/apt/trusted.gpg.d/$(basename ${FILE}).gpg
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -353,7 +353,12 @@ EOF
|
||||||
do
|
do
|
||||||
if [ -e "${FILE}" ]
|
if [ -e "${FILE}" ]
|
||||||
then
|
then
|
||||||
cp ${FILE} chroot/etc/apt/trusted.gpg.d/$(basename ${FILE}).asc
|
if grep -q "PGP PUBLIC KEY BLOCK" "${FILE}"
|
||||||
|
then
|
||||||
|
cp ${FILE} chroot/etc/apt/trusted.gpg.d/$(basename ${FILE}).asc
|
||||||
|
else
|
||||||
|
cp ${FILE} chroot/etc/apt/trusted.gpg.d/$(basename ${FILE}).gpg
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue