This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import subprocess | |
import urllib.request | |
from sys import exit | |
from json import loads | |
from stat import S_IXOTH | |
from os import getuid, chmod, stat, makedirs | |
if getuid() != 0: | |
print("This script requires sudo.") | |
exit(1) |