This commit is contained in:
parent
e9b2c207f9
commit
4edf24c4ce
@ -15,9 +15,8 @@ function compile.check(module)
|
||||
local binexists = io.open(binpath)
|
||||
|
||||
if not binexists or (binexists and lfs.attributes(sourcepath).change > lfs.attributes(binpath).change ) then
|
||||
local cmd = string.format("cc -I/usr/include/ -I/usr/include/lua%s/ -fPIC -shared -o %s %s %s", lua_version, binpath, sourcepath, table.concat(libs," "))
|
||||
local res = io.popen(cmd)
|
||||
io.popen("chown %s:%s %s", user, group, binpath)
|
||||
io.popen(string.format("cc -I/usr/include/ -I/usr/include/lua%s/ -fPIC -shared -o %s %s %s", lua_version, binpath, sourcepath, table.concat(libs, " ")))
|
||||
io.popen(string.format("chown %s:%s %s", user, group, binpath))
|
||||
io.popen(string.format("chmod 600 %s", binpath))
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user