mirror of
git://code.qt.io/qt/qt5.git
synced 2026-04-05 13:16:40 +08:00
Both of the subscription activation options needs to run
with sudo as non-root user cannot connect system.
Task-number: QTQAINFRA-7637
Pick-to: 6.10 6.8 6.5
Change-Id: I05ea39e4c4a40b5294cc659e4d2e506ee0118848
Reviewed-by: Toni Saario <toni.saario@qt.io>
(cherry picked from commit 3a7915481f)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
16 lines
487 B
Bash
Executable File
16 lines
487 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# Copyright (C) 2023 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
|