From 0e39f791c21637176ec9b13dae1d2f2aff6b3383 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Thu, 14 May 2015 14:08:49 +0200 Subject: fixed paths for lib and etc 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)) -- cgit v0.10.2