prey/prey-node-client

View on GitHub
lib/conf/tasks/os/mac.js

Summary

Maintainability
A
1 hr
Test Coverage
const { exec } = require('child_process');
const join = require('path').join;
const paths = require(join('..', '..', '..', 'system', 'paths'));

exports.post_install = function(cb) {
  cb();
};

exports.pre_uninstall = function(cb) {
  cb();
};

exports.post_activate = function(cb) {
  cb();
};

exports.deleteOsquery = (cb) => {
  exec(`${paths.current}/bin/trinity --uninstall`, () => {
    if (cb && typeof cb !== 'undefined') cb();
  });
};