diff --git a/bin/telebitd.js b/bin/telebitd.js index ec7406f..d2b5910 100755 --- a/bin/telebitd.js +++ b/bin/telebitd.js @@ -408,6 +408,7 @@ function serveControlsHelper() { // mask is so that processes owned by other users // can speak to this process, which is probably root-owned var oldUmask = process.umask(0x0000); + require('mkdirp').sync(path.resolve(state._ipc.path, '..')); controlServer.listen({ path: state._ipc.path , writableAll: true diff --git a/usr/share/dist/Library/LaunchDaemons/cloud.telebit.remote.plist.tpl b/usr/share/dist/Library/LaunchDaemons/cloud.telebit.remote.plist.tpl index a455b8f..513db78 100644 --- a/usr/share/dist/Library/LaunchDaemons/cloud.telebit.remote.plist.tpl +++ b/usr/share/dist/Library/LaunchDaemons/cloud.telebit.remote.plist.tpl @@ -17,9 +17,9 @@ TELEBIT_PATH {TELEBIT_PATH} NODE_PATH - {TELEBIT_PATH}/lib/node_modules + {NODE_PATH} NPM_CONFIG_PREFIX - {TELEBIT_PATH} + {NPM_CONFIG_PREFIX} UserName diff --git a/usr/share/dist/etc/skel/Library/LaunchAgents/cloud.telebit.remote.plist.tpl b/usr/share/dist/etc/skel/Library/LaunchAgents/cloud.telebit.remote.plist.tpl index 5438d57..cca30d3 100644 --- a/usr/share/dist/etc/skel/Library/LaunchAgents/cloud.telebit.remote.plist.tpl +++ b/usr/share/dist/etc/skel/Library/LaunchAgents/cloud.telebit.remote.plist.tpl @@ -19,9 +19,9 @@ TELEBIT_PATH {TELEBIT_PATH} NODE_PATH - {TELEBIT_PATH}/lib/node_modules + {NODE_PATH} NPM_CONFIG_PREFIX - {TELEBIT_PATH} + {NPM_CONFIG_PREFIX}