diff options
Diffstat (limited to 'src/nopsyncd.c')
-rw-r--r-- | src/nopsyncd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nopsyncd.c b/src/nopsyncd.c index d4f3c08..f3fcc22 100644 --- a/src/nopsyncd.c +++ b/src/nopsyncd.c @@ -33,8 +33,8 @@ #include "config.h" #define LUA_MAIN_LOOP_FUNC "main_loop" -#define QLISTENER LIBDIR"/qlistener.lua" -#define TCPSERVER LIBDIR"/tcpserver.lua" +#define QLISTENER DATAROOTDIR"/rhnop/qlistener.lua" +#define TCPSERVER DATAROOTDIR"/rhnop/tcpserver.lua" #if LUA_VERSION_NUM > 501 static const luaL_Reg nopsyncd_lualibs[] = { @@ -92,7 +92,7 @@ int init_main_loop(lua_State *L, const char* filename) return -1; } - lua_pushstring(L, LIBDIR); + lua_pushstring(L, DATAROOTDIR); lua_setglobal(L, "rhnoplibdir"); ret = lua_pcall(L, 0, 0, 0); |