#!/usr/share/venvs/netq-apps/bin/python
#
# Copyright (c) 2017-2021 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# LicenseRef-NvidiaProprietary
#
# NVIDIA CORPORATION, its affiliates and licensors retain all intellectual
# property and proprietary rights in and to this material, related
# documentation and any modifications thereto. Any use, reproduction,
# disclosure or distribution of this material and related documentation
# without an express license agreement from NVIDIA CORPORATION or
# its affiliates is strictly prohibited
#
import sys
import os
from netq_apps.lib.installers.preinstall_checks import OptaCheck

if __name__ == '__main__':
    if os.getuid() != OptaCheck.ROOT_USER:
        msg = 'please run this command with sudo'
        print(('ERROR: {}'.format(msg)))
        sys.exit(OptaCheck.RC_FAIL)

    opta_check = OptaCheck()
    sys.exit(opta_check.run(cloud=True, silent=False, scale=False))
