mirror of
https://github.com/actions/runner-images.git
synced 2025-12-14 22:05:17 +00:00
[Ubuntu] OpenSSL disable to load providers (#5496)
* [Ubuntu] OpenSSL disable to load providers * Add link to vsts-agent issue * Add Ubuntu22 check condition
This commit is contained in:
committed by
GitHub
parent
8ee6ce76e4
commit
5a2cb18a48
@@ -1,5 +1,8 @@
|
|||||||
#!/bin/bash -e
|
#!/bin/bash -e
|
||||||
|
|
||||||
|
# Source the helpers for use with the script
|
||||||
|
source $HELPER_SCRIPTS/os.sh
|
||||||
|
|
||||||
# Set ImageVersion and ImageOS env variables
|
# Set ImageVersion and ImageOS env variables
|
||||||
echo ImageVersion=$IMAGE_VERSION | tee -a /etc/environment
|
echo ImageVersion=$IMAGE_VERSION | tee -a /etc/environment
|
||||||
echo ImageOS=$IMAGE_OS | tee -a /etc/environment
|
echo ImageOS=$IMAGE_OS | tee -a /etc/environment
|
||||||
@@ -40,3 +43,9 @@ if [[ -f "/etc/fwupd/daemon.conf" ]]; then
|
|||||||
sed -i 's/UpdateMotd=true/UpdateMotd=false/g' /etc/fwupd/daemon.conf
|
sed -i 's/UpdateMotd=true/UpdateMotd=false/g' /etc/fwupd/daemon.conf
|
||||||
systemctl mask fwupd-refresh.timer
|
systemctl mask fwupd-refresh.timer
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Disable to load providers
|
||||||
|
# https://github.com/microsoft/azure-pipelines-agent/issues/3834
|
||||||
|
if isUbuntu22; then
|
||||||
|
sed -i 's/openssl_conf = openssl_init/#openssl_conf = openssl_init/g' /etc/ssl/openssl.cnf
|
||||||
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user