zap: Fix configuration persistence
Fixed the reference for the home direction on ZAP initialization script. Closes #219737.
This commit is contained in:
parent
d1eca0bf6c
commit
675dec9f7c
@ -23,7 +23,7 @@ stdenv.mkDerivation rec {
|
|||||||
#!${runtimeShell}
|
#!${runtimeShell}
|
||||||
export PATH="${lib.makeBinPath [ jre ]}:\$PATH"
|
export PATH="${lib.makeBinPath [ jre ]}:\$PATH"
|
||||||
export JAVA_HOME='${jre}'
|
export JAVA_HOME='${jre}'
|
||||||
if ! [ -f "~/.ZAP/config.xml" ];then
|
if ! [ -f "\$HOME/.ZAP/config.xml" ];then
|
||||||
mkdir -p "\$HOME/.ZAP"
|
mkdir -p "\$HOME/.ZAP"
|
||||||
head -n 2 $out/share/${pname}/xml/config.xml > "\$HOME/.ZAP/config.xml"
|
head -n 2 $out/share/${pname}/xml/config.xml > "\$HOME/.ZAP/config.xml"
|
||||||
echo "<version>${version_tag}</version>" >> "\$HOME/.ZAP/config.xml"
|
echo "<version>${version_tag}</version>" >> "\$HOME/.ZAP/config.xml"
|
||||||
@ -38,7 +38,7 @@ stdenv.mkDerivation rec {
|
|||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://www.owasp.org/index.php/ZAP";
|
homepage = "https://www.owasp.org/index.php/ZAP";
|
||||||
description = "Java application for web penetration testing";
|
description = "Java application for web penetration testing";
|
||||||
maintainers = with maintainers; [ mog ];
|
maintainers = with maintainers; [ mog rafael ];
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user