use sudo --non-interactive for better error handling


ID: 549
PHID: PHID-TASK-mtvo34xfsdmk5zi3rnpz
Author: Patrick
Status at Migration Time: resolved
Priority at Migration Time: Low


When using sudo in scripts we should add --non-interactive for better error handling. It is better to have sudo instantly exit non-zero for missing /etc/sudoers.d exceptions and have this logged / noticed rather than asking for a user password.