- async.apply(fs.ensureFile, self.env.sc),
- async.apply(fs.chown, self.env.sc, owner['uid'], owner['gid']),
- async.apply(fs.ensureFile, self.env.cc),
- async.apply(fs.chown, self.env.cc, owner['uid'], owner['gid']),
- async.apply(self.overlay_sp, mineos.SP_DEFAULTS),
- async.apply(self.modify_sc, 'java', 'java_xmx', '256'),
- async.apply(self.modify_sc, 'onreboot', 'start', false),
- ], callback)
- }
- self.create_unconventional_server = function(owner, callback) {
- async.series([
- async.apply(self.verify, '!exists'),
- async.apply(self.verify, '!up'),
- async.apply(fs.ensureDir, self.env.cwd),
- async.apply(fs.chown, self.env.cwd, owner['uid'], owner['gid']),
- async.apply(fs.ensureDir, self.env.bwd),
- async.apply(fs.chown, self.env.bwd, owner['uid'], owner['gid']),
- async.apply(fs.ensureDir, self.env.awd),
- async.apply(fs.chown, self.env.awd, owner['uid'], owner['gid']),
- async.apply(fs.ensureFile, self.env.sp),