SHOW:
|
|
- or go back to the newest paste.
| 1 | - | local directory = 'masterserver' |
| 1 | + | local directory = 'spawnerserver' |
| 2 | local programName = 'code' | |
| 3 | ||
| 4 | -- Delete Everything | |
| 5 | print('Uninstalling existing applications, ignore the error')
| |
| 6 | shell.run('rm /*')
| |
| 7 | ||
| 8 | - | -- Install APIs |
| 8 | + | |
| 9 | - | print('Installing Dependencies')
|
| 9 | + | |
| 10 | - | shell.run('pastebin get 4nRg9CHU json')
|
| 10 | + | |
| 11 | ||
| 12 | -- Install Scripts | |
| 13 | print('Downloading and Installing Software')
| |
| 14 | shell.run('pastebin get 3ageECYg /'..directory..'/'..programName)
| |
| 15 | ||
| 16 | -- Create Update File | |
| 17 | print('Creating update command')
| |
| 18 | - | shell.run('pastebin get rwGmxSfe /'..directory..'/'..programName)
|
| 18 | + | |
| 19 | startupFile.write('shell.run(\'pastebin run 17gTfQqv\')')
| |
| 20 | startupFile.close() | |
| 21 | ||
| 22 | -- Create Startup File | |
| 23 | - | startupFile.write('shell.run(\'pastebin run 3sMnLmsn\')')
|
| 23 | + | |
| 24 | local startupFile = fs.open('/startup', 'w')
| |
| 25 | startupFile.write('shell.run(\''..directory..'/'..programName..'\')')
| |
| 26 | startupFile.close() | |
| 27 | ||
| 28 | print('Installation Complete, restarting device')
| |
| 29 | os.reboot() |