This commit is contained in:
parent
e9b2c207f9
commit
4edf24c4ce
@ -15,10 +15,9 @@ function compile.check(module)
|
|||||||
local binexists = io.open(binpath)
|
local binexists = io.open(binpath)
|
||||||
|
|
||||||
if not binexists or (binexists and lfs.attributes(sourcepath).change > lfs.attributes(binpath).change ) then
|
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," "))
|
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, " ")))
|
||||||
local res = io.popen(cmd)
|
io.popen(string.format("chown %s:%s %s", user, group, binpath))
|
||||||
io.popen("chown %s:%s %s", user, group, binpath)
|
io.popen(string.format("chmod 600 %s", binpath))
|
||||||
io.popen(string.format("chmod 600 %s",binpath))
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user