fix systemd PATH
This commit is contained in:
@@ -83,7 +83,11 @@
|
|||||||
description = "zineshop daemon";
|
description = "zineshop daemon";
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "simple";
|
Type = "simple";
|
||||||
ExecStart = "${zineshop-pkg}/bin/zineshop";
|
ExecStart = (pkgs.writeScript "start-zineshop" ''
|
||||||
|
#! ${pkgs.bash}/bin/bash
|
||||||
|
PATH="$PATH:${lib.makeBinPath [ pkgs.poppler_utils ]}";
|
||||||
|
"${zineshop-pkg}/bin/zineshop"
|
||||||
|
'');
|
||||||
Restart = "on-failure";
|
Restart = "on-failure";
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -93,7 +97,6 @@
|
|||||||
PORT = "8080";
|
PORT = "8080";
|
||||||
STATIC = "/var/lib/zineshop/static";
|
STATIC = "/var/lib/zineshop/static";
|
||||||
VIEWS = "/var/lib/zineshop/views";
|
VIEWS = "/var/lib/zineshop/views";
|
||||||
PATH="$PATH:${lib.makeBinPath [ pkgs.poppler_utils ]}";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
preStart = ''
|
preStart = ''
|
||||||
|
|||||||
Reference in New Issue
Block a user