diff options
Diffstat (limited to 'tool/aio.py')
-rwxr-xr-x | tool/aio.py | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/tool/aio.py b/tool/aio.py index a487228..00ae596 100755 --- a/tool/aio.py +++ b/tool/aio.py @@ -91,19 +91,6 @@ def check_domain_is_defined() -> str: exit(1) -def get_coscli_download_url() -> str: - request = urllib.request.urlopen( - "https://api.github.com/repos/tencentyun/coscli/releases/latest") - response = request.read() - # parse with json - data = json.loads(response) - assets = data["assets"] - for asset in assets: - if asset["name"] == "coscli-linux": - return asset["browser_download_url"] - raise ValueError("Cannot find coscli-linux in the latest release.") - - def download_tools(): # if we are not linux, we prompt the user if sys.platform != "linux": @@ -113,8 +100,7 @@ def download_tools(): exit(0) SCRIPTS = [("docker-mailserver setup script", "docker-mailserver-setup.sh", - "https://raw.githubusercontent.com/docker-mailserver/docker-mailserver/master/setup.sh"), - ("coscli", "coscli", get_coscli_download_url)] + "https://raw.githubusercontent.com/docker-mailserver/docker-mailserver/master/setup.sh")] for index, script in enumerate(SCRIPTS): number = index + 1 total = len(SCRIPTS) |