zscams 2.0.8__tar.gz → 2.0.10__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {zscams-2.0.8 → zscams-2.0.10}/PKG-INFO +1 -1
- {zscams-2.0.8 → zscams-2.0.10}/pyproject.toml +1 -1
- {zscams-2.0.8 → zscams-2.0.10}/zscams/agent/src/core/backend/bootstrap.py +1 -1
- {zscams-2.0.8 → zscams-2.0.10}/zscams/agent/src/support/filesystem.py +2 -2
- zscams-2.0.8/zscams/lib/.gitkeep +0 -0
- {zscams-2.0.8 → zscams-2.0.10}/README.md +0 -0
- {zscams-2.0.8 → zscams-2.0.10}/zscams/__init__.py +0 -0
- {zscams-2.0.8 → zscams-2.0.10}/zscams/__main__.py +0 -0
- {zscams-2.0.8 → zscams-2.0.10}/zscams/agent/__init__.py +0 -0
- {zscams-2.0.8 → zscams-2.0.10}/zscams/agent/certificates/.gitkeep +0 -0
- {zscams-2.0.8 → zscams-2.0.10}/zscams/agent/config.yaml +0 -0
- {zscams-2.0.8 → zscams-2.0.10}/zscams/agent/configuration/config.j2 +0 -0
- {zscams-2.0.8 → zscams-2.0.10}/zscams/agent/configuration/freebsd_service.j2 +0 -0
- {zscams-2.0.8 → zscams-2.0.10}/zscams/agent/configuration/linux_service.j2 +0 -0
- {zscams-2.0.8 → zscams-2.0.10}/zscams/agent/keys/autoport.key +0 -0
- {zscams-2.0.8 → zscams-2.0.10}/zscams/agent/src/__init__.py +0 -0
- {zscams-2.0.8 → zscams-2.0.10}/zscams/agent/src/core/__init__.py +0 -0
- {zscams-2.0.8 → zscams-2.0.10}/zscams/agent/src/core/backend/client.py +0 -0
- {zscams-2.0.8 → zscams-2.0.10}/zscams/agent/src/core/backend/exceptions.py +0 -0
- {zscams-2.0.8 → zscams-2.0.10}/zscams/agent/src/core/backend/unbootstrap.py +0 -0
- {zscams-2.0.8 → zscams-2.0.10}/zscams/agent/src/core/backend/update_machine_info.py +0 -0
- {zscams-2.0.8 → zscams-2.0.10}/zscams/agent/src/core/prerequisites.py +0 -0
- {zscams-2.0.8 → zscams-2.0.10}/zscams/agent/src/core/service_health_check.py +0 -0
- {zscams-2.0.8 → zscams-2.0.10}/zscams/agent/src/core/services.py +0 -0
- {zscams-2.0.8 → zscams-2.0.10}/zscams/agent/src/core/tunnel/__init__.py +0 -0
- {zscams-2.0.8 → zscams-2.0.10}/zscams/agent/src/core/tunnel/tls.py +0 -0
- {zscams-2.0.8 → zscams-2.0.10}/zscams/agent/src/core/tunnels.py +0 -0
- {zscams-2.0.8 → zscams-2.0.10}/zscams/agent/src/services/__init__.py +0 -0
- {zscams-2.0.8 → zscams-2.0.10}/zscams/agent/src/services/reverse_ssh.py +0 -0
- {zscams-2.0.8 → zscams-2.0.10}/zscams/agent/src/services/ssh_forwarder.py +0 -0
- {zscams-2.0.8 → zscams-2.0.10}/zscams/agent/src/services/system_monitor.py +0 -0
- {zscams-2.0.8 → zscams-2.0.10}/zscams/agent/src/support/__init__.py +0 -0
- {zscams-2.0.8 → zscams-2.0.10}/zscams/agent/src/support/cli.py +0 -0
- {zscams-2.0.8 → zscams-2.0.10}/zscams/agent/src/support/configuration.py +0 -0
- {zscams-2.0.8 → zscams-2.0.10}/zscams/agent/src/support/logger.py +0 -0
- {zscams-2.0.8 → zscams-2.0.10}/zscams/agent/src/support/mac.py +0 -0
- {zscams-2.0.8 → zscams-2.0.10}/zscams/agent/src/support/network.py +0 -0
- {zscams-2.0.8 → zscams-2.0.10}/zscams/agent/src/support/openssl.py +0 -0
- {zscams-2.0.8 → zscams-2.0.10}/zscams/agent/src/support/os.py +0 -0
- {zscams-2.0.8 → zscams-2.0.10}/zscams/agent/src/support/ssh.py +0 -0
- {zscams-2.0.8 → zscams-2.0.10}/zscams/agent/src/support/yaml.py +0 -0
- {zscams-2.0.8 → zscams-2.0.10}/zscams/deps.py +0 -0
|
@@ -3,7 +3,7 @@ name = "zscams_agent"
|
|
|
3
3
|
|
|
4
4
|
[tool.poetry]
|
|
5
5
|
name = "zscams"
|
|
6
|
-
version = "2.0.
|
|
6
|
+
version = "2.0.10"
|
|
7
7
|
description = "Async TLS tunnel client with SNI routing, auto-reconnect, and health checks"
|
|
8
8
|
authors = ["OCD - Cairo Software Team"]
|
|
9
9
|
maintainers = ["OCD - Cairo Software Team"]
|
|
@@ -69,7 +69,7 @@ def install_zscams_systemd_service(user_to_run_as: str):
|
|
|
69
69
|
import zscams
|
|
70
70
|
|
|
71
71
|
BASE_DIR = Path(zscams.__file__).resolve().parent
|
|
72
|
-
filename = "
|
|
72
|
+
filename = "freebsd_service" if is_freebsd() else "linux_service"
|
|
73
73
|
template_path = f"{BASE_DIR}/agent/configuration/{filename}.j2"
|
|
74
74
|
with open(template_path) as f:
|
|
75
75
|
template = f.read()
|
|
@@ -48,7 +48,7 @@ def is_file_exists(path, logger, base_dir=None):
|
|
|
48
48
|
return False
|
|
49
49
|
|
|
50
50
|
|
|
51
|
-
def append_to_file(path
|
|
51
|
+
def append_to_file(path, content: str):
|
|
52
52
|
try:
|
|
53
53
|
if isinstance(path, str):
|
|
54
54
|
path = Path(path)
|
|
@@ -63,6 +63,6 @@ def append_to_file(path: str | Path, content: str):
|
|
|
63
63
|
raise exception
|
|
64
64
|
|
|
65
65
|
|
|
66
|
-
def write_to_file(path: str
|
|
66
|
+
def write_to_file(path: str, content: str):
|
|
67
67
|
with open(path, "w", encoding="utf-8") as f:
|
|
68
68
|
f.write(content)
|
zscams-2.0.8/zscams/lib/.gitkeep
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|