mirror of
https://github.com/linuxserver/core.git
synced 2026-02-20 05:07:19 +08:00
15 lines
315 B
JavaScript
15 lines
315 B
JavaScript
"use strict";
|
|
|
|
var assert = require("assert");
|
|
|
|
plugin.consumes = [];
|
|
plugin.provides = ["assert.root"];
|
|
|
|
module.exports = plugin;
|
|
|
|
function plugin(options, imports, register) {
|
|
assert.equal(process.getuid(), 0, "You need to be root to run this config");
|
|
register(null, {
|
|
"assert.root": {}
|
|
});
|
|
} |