libvpl icon indicating copy to clipboard operation
libvpl copied to clipboard

Distribution and privileges check

Open shazaum opened this issue 1 year ago • 1 comments

Issue

I saw that it was necessary to check another variable for the version of the Debian distribution that I am using, Bullseye. As well as whether the user has privilege to install a package using apt.

#144 - Problems identifying the linux distribution #145 - Check root privileges

Solution

About #144, to solve the distribution check, it is necessary to search for the ID variable instead of the ID_LIKE, then include a check for the existence of the ID variable and later, include it in the ID_LIKE variable.

#145, a quick check with the whoami command, to validate if the user is root

How Tested

Just run the bootstrap script on Debian Bullseye

shazaum avatar Jun 05 '24 22:06 shazaum

Hi @shazaum Could you please amend your commit rather than adding a new one? Would like to merge this into main without Modifying your commit by squashing it.

mav-intel avatar Jun 12 '24 15:06 mav-intel

Closing for now due to inactivity.

tletnes avatar Oct 09 '24 17:10 tletnes