From f3b39c3e10053feb84914d5ab4129ba3af8d319e Mon Sep 17 00:00:00 2001 From: AaronDewes Date: Sun, 16 Apr 2023 19:11:08 +0000 Subject: [PATCH] Remove host gateway --- app/lib/manage.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/lib/manage.py b/app/lib/manage.py index 2e3ced8..153c10e 100644 --- a/app/lib/manage.py +++ b/app/lib/manage.py @@ -1,4 +1,4 @@ -# SPDX-FileCopyrightText: 2021-2022 Citadel and contributors +# SPDX-FileCopyrightText: 2021-2023 Citadel and contributors # # SPDX-License-Identifier: GPL-3.0-or-later @@ -53,23 +53,23 @@ def replace_vars(file_content: str): return re.sub(r'<(.*?)>', lambda m: get_var(convert_to_upper(m.group(1))), file_content) def update(): - os.system("docker run --rm -v {}:/citadel -u 1000:1000 --add-host=host.docker.internal:host-gateway {} /app-cli convert /citadel --caddy-url http://host.docker.internal:2019/".format(nodeRoot, dependencies['app-cli'])) + os.system("docker run --rm -v {}:/citadel -u 1000:1000 {} /app-cli convert /citadel".format(nodeRoot, dependencies['app-cli'])) print("Generated configuration successfully") def downloadNew(): - os.system("docker run --rm -v {}:/citadel -u 1000:1000 --add-host=host.docker.internal:host-gateway {} /app-cli download-new /citadel".format(nodeRoot, dependencies['app-cli'])) + os.system("docker run --rm -v {}:/citadel -u 1000:1000 {} /app-cli download-new /citadel".format(nodeRoot, dependencies['app-cli'])) print("Generated configuration successfully") def downloadAll(): - os.system("docker run --rm -v {}:/citadel -u 1000:1000 --add-host=host.docker.internal:host-gateway {} /app-cli download-apps /citadel".format(nodeRoot, dependencies['app-cli'])) + os.system("docker run --rm -v {}:/citadel -u 1000:1000 {} /app-cli download-apps /citadel".format(nodeRoot, dependencies['app-cli'])) print("Generated configuration successfully") def download(app_id): - os.system("docker run --rm -v {}:/citadel -u 1000:1000 --add-host=host.docker.internal:host-gateway {} /app-cli download {} --citadel-root /citadel".format(nodeRoot, dependencies['app-cli'], app_id)) + os.system("docker run --rm -v {}:/citadel -u 1000:1000 {} /app-cli download {} --citadel-root /citadel".format(nodeRoot, dependencies['app-cli'], app_id)) print("Generated configuration successfully") def getAvailableUpdates(): - os.system("docker run --rm -v {}:/citadel -u 1000:1000 --add-host=host.docker.internal:host-gateway {} /app-cli check-updates /citadel".format(nodeRoot, dependencies['app-cli'])) + os.system("docker run --rm -v {}:/citadel -u 1000:1000 {} /app-cli check-updates /citadel".format(nodeRoot, dependencies['app-cli'])) print("Generated configuration successfully") def getUserData():