Description
Bug reporting acknowledgment
Yes, I read it
Professional support
Yes, I know
Describe the bug
running the latest and previous versions of glpi-agent-1.12-linux-installer.pl fails due to the repository being set to:
codeready-builder-for-rhel-8-x86_64-rhui-rpms
rather than codeready-builder-for-rhel-8-x86_64-rpms
To reproduce
Build basic RHEL 8 image on Azure
Notice the repositories are set to rhui
versions instead of the Redhat repositories.
Try to install GLPI-agent
Receive the following error:
[RHEL-8.1:root@my-host ~]# perl glpi-agent-1.12-with-snap-linux-installer.pl --server=https://glpi.my.domain/marketplace/glpiinventory/ --no-httpd --type=typical --runnow
Installing glpi-agent v1.12...
Can't enable codeready-builder-for-rhel-8-x86_64-rhui-rpms repository:
Expected behavior
Would hope the install worked on standard images deployed by Azure/Redhat
Operating system
Linux
GLPI Agent version
v1.12
GLPI version
10.0.17
GLPIInventory plugin or other plugin version
GLPI Inventory v1.4.0
Additional context
I made an amateur attempt at fixing this by adding -rhui
to the script on these three lines but it didn't resolve the problem:
$self->verbose("Checking codeready-builder-for-rhel-$v-$arch-rhui-rpms repository repository is enabled");
my $ret = $self->run("subscription-manager repos --enable codeready-builder-for-rhel-$v-$arch-rhui-rpms");
die "Can't enable codeready-builder-for-rhel-$v-$arch-rhui-rpms repository: $!\n" if $ret;
The install does complete normally when I comment out the die
line completely, since codeready-builder is already active.