cpanel / elevate

elevate your cPanel&WHM CentOS 7 server to Almalinux 8
https://cpanel.github.io/elevate/
BSD 2-Clause "Simplified" License
45 stars 32 forks source link

Prefer using apt-get over apt in Elevate::PkgMgr #559

Open cPholloway opened 2 days ago

cPholloway commented 2 days ago

Case RE-980: apt will throw a warning to STDERR that it is not intended for scripts which causes unnecessary noise in the elevate logs. This change updates Elevate::PkgMgr to prefer apt-get over apt in order to avoid this warning and help make parsing output more consistent

Changelog:

By submitting pull requests to this repo, I agree to the Contributor License Agreement which can be found at: https://github.com/cpanel/elevate/blob/main/docs/cPanel-CLA.pdf

troglodyne commented 2 days ago

I made this same mistake when doing initial Ubuntu support. You may want to look up the ENV vars you need too from Cpanel/PackMan/Sys/apt.pm.