Allow running as regular user by invoking `sudo` when required
I couldn't find any related issue, so apologies if this already had been discussed/explained.
I'm running dra as a regular user (shall we say, to follow best security practices), but I'd like to utilize its capability to install downloaded asset w/o a need to separately run package manager with root privileges.
> dra download --install org_name/util_name
Release tag is v3.2.0
โ Pick the asset to download ยท util_name_3.2.0_amd64.deb
Saved to: /tmp/dra-27183312ec7b4b51851513bbbaf22f01
An error occurred while executing (status: 2):
dpkg: error: requested operation requires superuser privilege
It would be beneficial if dra invoked sudo and asked the user to input password.
Does that make any sense though?
Thanks for the great tool!
Hi! That make sense. I have a vague memory that in the past I tried this approach, but there were some issues.
I will take a look at this once I have time for dra ๐
@devmatteini Thank you. Appreciate your time ๐๐ป