From 675dec9f7ce2c1ef232549ac3bd598835c96eb0f Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Fri, 17 Mar 2023 15:31:11 +0200 Subject: [PATCH] zap: Fix configuration persistence Fixed the reference for the home direction on ZAP initialization script. Closes #219737. --- pkgs/tools/networking/zap/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/networking/zap/default.nix b/pkgs/tools/networking/zap/default.nix index 8fdf8a38f31..861d0f9b8ee 100644 --- a/pkgs/tools/networking/zap/default.nix +++ b/pkgs/tools/networking/zap/default.nix @@ -23,7 +23,7 @@ stdenv.mkDerivation rec { #!${runtimeShell} export PATH="${lib.makeBinPath [ jre ]}:\$PATH" export JAVA_HOME='${jre}' - if ! [ -f "~/.ZAP/config.xml" ];then + if ! [ -f "\$HOME/.ZAP/config.xml" ];then mkdir -p "\$HOME/.ZAP" head -n 2 $out/share/${pname}/xml/config.xml > "\$HOME/.ZAP/config.xml" echo "${version_tag}" >> "\$HOME/.ZAP/config.xml" @@ -38,7 +38,7 @@ stdenv.mkDerivation rec { meta = with lib; { homepage = "https://www.owasp.org/index.php/ZAP"; description = "Java application for web penetration testing"; - maintainers = with maintainers; [ mog ]; + maintainers = with maintainers; [ mog rafael ]; platforms = platforms.linux; license = licenses.asl20; };