From 18d9462fa9396d6a56dbe2836eeb8949a7d683a5 Mon Sep 17 00:00:00 2001 From: Dmitry Voronin Date: Sun, 15 Dec 2024 21:38:16 +0300 Subject: [PATCH] Jobber: Fix paths. --- host/x86_64-linux/home/Jobber.nix | 7 +++++++ package/jobber/project/jobber/__init__.py | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/host/x86_64-linux/home/Jobber.nix b/host/x86_64-linux/home/Jobber.nix index b8ec3fd4..e2a8003c 100644 --- a/host/x86_64-linux/home/Jobber.nix +++ b/host/x86_64-linux/home/Jobber.nix @@ -25,6 +25,13 @@ in { hostAddress = "188.242.247.132"; localAddress = "10.1.0.2"; + bindMounts = { + "/data" = { + hostPath = "/storage/hot/data/jobber"; + isReadOnly = true; + }; + }; + config = { ... }: let packages = [ script diff --git a/package/jobber/project/jobber/__init__.py b/package/jobber/project/jobber/__init__.py index 8c4b5702..95dd49ee 100644 --- a/package/jobber/project/jobber/__init__.py +++ b/package/jobber/project/jobber/__init__.py @@ -29,8 +29,8 @@ URL_SCHEME = "https://" URL = "portal.fsight.ru/" # DRIVER = "/data/geckodriver" DRIVER = "geckodriver" -USERS = "/storage/hot/data/jobber/users.txt" -OVPN = "/storage/hot/data/jobber/fsight.ovpn" +USERS = "/data/users.txt" +OVPN = "/data/fsight.ovpn" BUTTON = "//*[contains(@id, '_InOutButton')]" TEXT_HERE = "Пришёл" TEXT_GONE = "Ушёл"