custom CAs also in alpine

This commit is contained in:
Aleksandar N. Kostadinov 2024-09-19 22:44:41 +03:00
commit ea2b009b3d
No known key found for this signature in database
GPG key ID: DE37CA1CBFB3F811
2 changed files with 4 additions and 3 deletions

View file

@ -62,8 +62,6 @@ EOF
#######################################
function setup_ubuntu () {
update-ca-certificates
id ${USER} > /dev/null
# Check the existence of the user, if not exist, create it.
if [ $? -eq 1 ]; then
@ -131,6 +129,9 @@ else
exit 1
fi
# Add user CAs to OS trusted CA store (does not affect webpki)
update-ca-certificates
# Check the given user and its uid:gid
if [ $(id -u ${USER}) -ne ${USER_ID} -a $(id -g ${USER}) -ne ${GROUP_ID} ]; then
echo "${USER} exists or was previously created. However, its uid and gid are inconsistent. Please recreate your container."