UNPKG

@nex_otaku/nginx-enable-site

Version:

Enable and disable Nginx hosts

15 lines (13 loc) 340 B
const exec = require('child-process-promise').exec; const shellRun = async (command) => { return exec(command) .then(function (result) { return result.stdout.trim(); }) .catch(function (err) { return err.stderr.trim(); }); }; module.exports = { run: shellRun }