Jelajahi Sumber

Move SSH_KEY_NAME definition to environment

jherve 1 bulan lalu
induk
melakukan
c4860a50d1
1 mengubah file dengan 1 tambahan dan 6 penghapusan
  1. 1 6
      start.py

+ 1 - 6
start.py

@@ -41,11 +41,6 @@ def main():
     if ssh_auth_sock:
         volumes += [f"{ssh_auth_sock}:{ssh_auth_sock}:Z"]
 
-    if is_windows:
-        ssh_key_name = "theenglishway-windows"
-    else:
-        ssh_key_name = "theenglishway.pub"
-
     volumes += [
         f"{vol}:{to_source_path(vol)}:ro" for vol in data_sources
     ]
@@ -66,7 +61,7 @@ def main():
         "-e",
         "TZ=Europe/Paris",
         "-e",
-        f"SSH_KEY_NAME={ssh_key_name}",
+        "SSH_KEY_NAME",
         "-e",
         f"HOST_LOGIN={os.getlogin()}",
         "--env-file",