-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathautoInstall.lua
More file actions
21 lines (17 loc) · 848 Bytes
/
Copy pathautoInstall.lua
File metadata and controls
21 lines (17 loc) · 848 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
local shell = require("shell")
local filesystem = require("filesystem")
local computer = require("computer")
if not filesystem.exists("/home/myaenetwork") then
filesystem.makeDirectory("/home/myaenetwork")
shell.setWorkingDirectory("/home/myaenetwork/")
print("Downloading")
shell.execute("wget https://raw.githubusercontent.com/PoroCoco/myaenetwork/main/account.lua")
shell.execute("wget https://raw.githubusercontent.com/PoroCoco/myaenetwork/main/web.lua")
shell.execute("wget https://raw.githubusercontent.com/PoroCoco/myaenetwork/main/poroNet.lua")
shell.execute("wget https://raw.githubusercontent.com/PoroCoco/myaenetwork/main/maenUpdater.lua")
shell.setWorkingDirectory("/home/")
filesystem.remove("home/autoInstall.lua")
print("Done")
else
print("Already installed")
end