Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Ask for the server ID and save it to .domaincontrollerID
- print("Enter the server ID:")
- local serverID = read()
- -- Save the server ID in .domaincontrollerID
- local file = fs.open(".domaincontrollerID", "w")
- file.write(serverID)
- file.close()
- -- Create the domain services enabled file
- local domainServicesPath = "/disk/config/domain/"
- if not fs.exists(domainServicesPath) then
- fs.makeDir(domainServicesPath)
- end
- -- Create the file
- file = fs.open(domainServicesPath .. "DomainServiceEnabled.cfg", "w")
- file.write("Domain Services Enabled")
- file.close()
- -- Download the file from Pastebin
- local pastebinURL = "https://pastebin.com/raw/SRAQQDuJ"
- local response = http.get(pastebinURL)
- if response then
- local data = response.readAll()
- local dcPath = "dc"
- -- Save the downloaded file as dc.lua
- file = fs.open(dcPath, "w")
- file.write(data)
- file.close()
- print("Domain controller setup complete!")
- else
- print("Failed to download the dc file from Pastebin.")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement