# -*- coding: utf-8 -*-
##################################################
# This file is part of WAPT Enterprise
# All right reserved, (c) Tranquil IT Systems 2026
# For more information please refer to
# https://wapt.tranquil.it/store/licences.html
##################################################
from setuphelpers import *
from setupdevhelpers import *

'''
    # /!\ Add this to debug installation or uninstallation /!\
    rpm -q oracle-instantclient-basic

'''

def install():
    rpm_name = glob.glob("oracle-instantclient-basic-*.el10.x86_64.rpm")[0]
    print("Installing Oracle Instant Client from: %s" % rpm_name)

    install_rpm(rpm_name)
    print("Oracle Instant Client installation completed")

def uninstall():
    run("dnf remove -y oracle-instantclient-basic")
    print("Oracle Instant Client uninstalled")