fix: do not use deprecated apt-key to save yarn repo key

This commit is contained in:
Roni Väyrynen
2025-02-13 17:04:50 +02:00
parent 23c5a4f026
commit 1a250ca0b9

View File

@@ -340,7 +340,7 @@ function InstallDependenciesDeb {
# only install yarn repo if user allows it to be installed # only install yarn repo if user allows it to be installed
if [[ "$INSTALL_REPOS" == "true" ]]; then if [[ "$INSTALL_REPOS" == "true" ]]; then
runcmd "curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -" runcmd "curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg -o /etc/apt/trusted.gpg.d/yarn.asc"
runcmd "echo \"deb https://dl.yarnpkg.com/debian/ stable main\" | tee /etc/apt/sources.list.d/yarn.list" runcmd "echo \"deb https://dl.yarnpkg.com/debian/ stable main\" | tee /etc/apt/sources.list.d/yarn.list"
fi fi