Advertisement
cyber_Ahn

Mail Server installer

Dec 6th, 2016 (edited)
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.41 KB | None | 0 0
  1. -- save this code in Startup!!
  2. function download(url, file)
  3.   local content = http.get(url).readAll()
  4.   if not content then
  5.     error("Could not connect to website")
  6.   end
  7.   f = fs.open(file, "w")
  8.   f.write(content)
  9.   f.close()
  10. end
  11. shell.run("rm"..programName)
  12. shell.run("delete "..programName)
  13. download("http://caworks-sl.de/data/download/mc/server/mailServer.lua", "mail_server")
  14. shell.run(programName)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement