LINBIT / virter

Virter is a command line tool for simple creation and cloning of virtual machines based on libvirt
Apache License 2.0
231 stars 12 forks source link

feat(dhcp): allow running dhcp_release with doas/please if sudo isn't found #25

Closed folliehiyuki closed 1 year ago

folliehiyuki commented 1 year ago

This PR allows dhcp_release command to be run with doas or please as alternatives to sudo. If the current user is root, dhcp_release will be run directly.

-n short flag is used here instead of --non-interactive since doas doesn't have the corresponding long form, while in please case it's a short argument of --noprompt.