update paths

This commit is contained in:
Mikan
2025-11-22 15:41:27 +03:00
parent 9e65be9024
commit 3d69f8596b

View File

@@ -31,7 +31,7 @@ def get_host_ip():
def read_services_config():
"""Читает конфигурацию сервисов из файла"""
config_path = Path.home() / "projects" / "docker" / "network" / "services.json"
config_path = Path("../services.json")
default_config = {
"services": [
{"name": "gitea", "port": 3000},
@@ -76,7 +76,7 @@ server=1.1.1.1
"""
# Путь к конфигурационному файлу
config_path = Path.home() / "projects" / "docker" / "network" / "dnsmasq.conf"
config_path = Path("../dnsmasq.conf")
config_path.parent.mkdir(parents=True, exist_ok=True)
with open(config_path, 'w', encoding='utf-8') as f:
@@ -103,7 +103,7 @@ def setup_project():
generate_dnsmasq_config()
# Переходим в директорию проекта
project_path = Path.home() / "projects" / "docker" / "local-dns"
project_path = Path("../")
if not project_path.exists():
print(f"Директория проекта не найдена: {project_path}")
sys.exit(1)