From cdcd17e4e9d04dc6a7a5aa4222f07a0cd6500bee Mon Sep 17 00:00:00 2001 From: ahuston-0 Date: Sun, 1 Jun 2025 18:29:54 -0400 Subject: [PATCH] deref symlink scripts Signed-off-by: ahuston-0 --- systems/palatine-hill/docker/torr.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/systems/palatine-hill/docker/torr.nix b/systems/palatine-hill/docker/torr.nix index 9b5b43c..75513c7 100644 --- a/systems/palatine-hill/docker/torr.nix +++ b/systems/palatine-hill/docker/torr.nix @@ -104,8 +104,13 @@ in + "${pkgs.coreutils}/bin/chown docker-service:users ${delugevpn_path}/config/openvpn/network.ovpn &&" + "${pkgs.coreutils}/bin/chmod 440 ${delugevpn_path}/config/openvpn/network.ovpn\"" ) + ( + "${pkgs.bash}/bin/bash -c \"${pkgs.findutils}/bin/find ${delugevpn_path}/config/scripts/links " + + "-type l " + + "| ${pkgs.findutils}/bin/xargs -I {} cp -L {} ${delugevpn_path}/config/scripts/ \"" + ) ]; - ExecStopPost = [ "${pkgs.coreutils}/bin/rm ${delugevpn_path}/config/openvpn/network.ovpn" ]; + ExecStopPost = [ "${pkgs.coreutils}/bin/rm ${delugevpn_path}/config/scripts/*sh" ]; }; }; @@ -116,7 +121,7 @@ in restartUnits = [ "docker-delugeVPN.service" ]; }; "docker/protonvpn-start-script" = { - path = "${delugevpn_path}/config/scripts/protonvpn-start-script.sh"; + path = "${delugevpn_path}/config/scripts/links/protonvpn-start-script.sh"; owner = "docker-service"; group = "users"; restartUnits = [ "docker-delugeVPN.service" ];