Implement /install
This commit is contained in:
6
server/templates/install.lua
Normal file
6
server/templates/install.lua
Normal file
@@ -0,0 +1,6 @@
|
||||
local path = "{{ deploy_path }}"
|
||||
files = { "main.lua", "json.lua", "framebuffer.lua", "ringbuffer.lua" }
|
||||
for _, file in ipairs(files) do
|
||||
fs.delete(file)
|
||||
shell.run(("wget %s/lua/%s"):format(path, file))
|
||||
end
|
||||
Reference in New Issue
Block a user