Browse Source

remove superuser requirement

The entire library already uses sudo to execute ufw commands, so it's
perfectly fine to let the Node process run as a non-root user and manage
permissions with sudoers on Linux hosts (all I care about).
develop
Rob Colbert 2 years ago
parent
commit
84576613be
  1. 4
      src/Index.ts

4
src/Index.ts

@ -1,9 +1,5 @@
import { checkSudo, checkNodeVersion, checkPlatform, checkPlatformExact } from './Util';
if (!checkSudo()) {
throw new Error("You need to be root to run this package.");
};
if (!checkNodeVersion()) {
throw new Error(`The Node version must be at least v14 or above.`);
};

Loading…
Cancel
Save