summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2015-05-14 12:08:49 (GMT)
committerChristian Pointner <equinox@helsinki.at>2015-05-14 12:08:49 (GMT)
commit0e39f791c21637176ec9b13dae1d2f2aff6b3383 (patch)
treeff08a1ca2640e7fa1a03d7f5ada76996dcf458f6
parenta235aeb1f545807574a71808027492b2939906f0 (diff)
fixed paths for lib and etc
-rw-r--r--src/nopsyncd.c4
-rw-r--r--src/qlistener.lua2
-rw-r--r--src/tcpserver.lua2
3 files changed, 4 insertions, 4 deletions
diff --git a/src/nopsyncd.c b/src/nopsyncd.c
index 3479ad5..c26d637 100644
--- a/src/nopsyncd.c
+++ b/src/nopsyncd.c
@@ -92,9 +92,9 @@ int init_main_loop(lua_State *L, const char* filename)
return -1;
}
- lua_pushstring(L, DATAROOTDIR);
+ lua_pushstring(L, DATAROOTDIR"/rhnop");
lua_setglobal(L, "rhnoplibdir");
- lua_pushstring(L, ETCDIR);
+ lua_pushstring(L, ETCDIR"/rhnop");
lua_setglobal(L, "rhnopescdir");
ret = lua_pcall(L, 0, 0, 0);
diff --git a/src/qlistener.lua b/src/qlistener.lua
index 044f635..050dfc1 100644
--- a/src/qlistener.lua
+++ b/src/qlistener.lua
@@ -75,7 +75,7 @@ function handle_message(msg)
end
function main_loop()
- init(rhnopescdir .. "nopsyncd.conf")
+ init(rhnopescdir .. "/nopsyncd.conf")
posix.umask("rwxrwxr-x")
local q, err = mq.create(cnf.queue_name, "ro", "rw-rw----")
diff --git a/src/tcpserver.lua b/src/tcpserver.lua
index 34d01aa..6deab81 100644
--- a/src/tcpserver.lua
+++ b/src/tcpserver.lua
@@ -27,7 +27,7 @@ conf = require "conf"
function init_server()
local server = assert(socket.tcp())
- cnf = conf.load(rhnopescdir .. "nopsyncd.conf")
+ cnf = conf.load(rhnopescdir .. "/nopsyncd.conf")
assert(server:setoption('reuseaddr', true))
assert(server:bind(cnf.tcp_host, cnf.tcp_port))
assert(server:listen(5))