mirror of
git://code.qt.io/qt/qt5.git
synced 2026-04-25 14:17:50 +08:00
Both of the subscription activation options needs to run with sudo as non-root user cannot connect system. Pick-to: 6.11 Task-number: QTQAINFRA-7637 Change-Id: I933536d7321b9a7e54732395b6e536c5275129d3 Reviewed-by: Toni Saario <toni.saario@qt.io>
16 lines
487 B
Bash
16 lines
487 B
Bash
#!/usr/bin/env bash
|
|
|
|
# Copyright (C) 2026 The Qt Company Ltd.
|
|
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
|
|
|
|
set -e
|
|
|
|
curl --retry 5 --retry-delay 10 --retry-max-time 60 http://ci-files01-hki.ci.qt.io/input/semisecure/redhat_ak_all_versions_rhc.sh -o "/tmp/redhat_ak.sh" &>/dev/null
|
|
sudo chmod 755 /tmp/redhat_ak.sh
|
|
sudo /tmp/redhat_ak.sh
|
|
|
|
# refresh local certificates
|
|
sudo subscription-manager refresh
|
|
|
|
sudo rm -f /tmp/redhat_ak.sh
|