astraw/stdeb — pull request #65 by chrishiestand (2013-06-27 00:22:51+00:00)
Title: remove sudo from scripts

Instead, ensure that scripts are run as root.

It's usually a bad idea to use "sudo" within a script because suddenly the script is
opaquely running as different users. Instead, the script should either require the user
to be root (or within sudo); or handle the situation where the user is not root by
e.g. not installing the debian package.

The usage of sudo also prevents automated installs in most cases.

This flaw breaks the package for me. My sudoers configuration prevents root from
running sudo - so the final step always fails.

caveat: I have not done careful testing that something might become broken after running
the command as root. i.e. if the original author intended most things to be run as a
standard user, it may be useful to double-check that nothing gets trampled.