forked from PoroCoco/myaenetwork
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathautoInstall.lua
25 lines (21 loc) · 1.04 KB
/
autoInstall.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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/Ex0danify/myaenetwork/main/account.lua")
shell.execute("wget https://raw.githubusercontent.com/Ex0danify/myaenetwork/main/web.lua")
shell.execute("wget https://raw.githubusercontent.com/Ex0danify/myaenetwork/main/MaenUpdater.lua")
shell.execute("wget https://raw.githubusercontent.com/Ex0danify/myaenetwork/main/accountAux.lua")
shell.execute("wget https://raw.githubusercontent.com/Ex0danify/myaenetwork/main/webAux.lua")
shell.setWorkingDirectory("/home/")
filesystem.remove("home/autoInstall.lua")
print("Done")
print("Switching computer architecture to Lua 5.3")
os.sleep(2)
computer.setArchitecture("Lua 5.3")
else
print("Already installed")
end