change source path

master
Michele Guerini Rocco 2019-09-18 21:58:17 +02:00
parent a0923ae9dd
commit 1ade7ffacf
Signed by: rnhmjoj
GPG Key ID: BFBAF4C975F76450
2 changed files with 3 additions and 3 deletions

View File

@ -41,7 +41,7 @@ certtool --generate-self-signed --load-privkey ca.key --outfile ca.crt
```
or use the tool ./cert.py provided
```
python cert.py -f output
python src/cert.py -f output
```
In the latter the "output" file will contain both private key and certificate;
split the file and store them separately.

View File

@ -6,7 +6,7 @@ let
cfgPrivoxy = config.services.privoxy;
cfg = cfgPrivoxy.tls-wrapper;
src = ./.;
package = ./.;
action = pkgs.writeText "privoxy-tls.action" ''
{ +client-header-tagger{privoxy-tls-tagger} }
@ -190,7 +190,7 @@ in
User = "privoxy-tls";
PrivateTmp = true;
PermissionsStartOnly = true;
ExecStart = "${python}/bin/python ${src}/main.py -c ${configFile}";
ExecStart = "${python}/bin/python ${package}/src/main.py -c ${configFile}";
};
preStart = ''
if ! test -f ${dataDir}/ca.crt; then