fix systemd PATH
This commit is contained in:
@@ -83,7 +83,11 @@
|
||||
description = "zineshop daemon";
|
||||
serviceConfig = {
|
||||
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";
|
||||
};
|
||||
|
||||
@@ -93,7 +97,6 @@
|
||||
PORT = "8080";
|
||||
STATIC = "/var/lib/zineshop/static";
|
||||
VIEWS = "/var/lib/zineshop/views";
|
||||
PATH="$PATH:${lib.makeBinPath [ pkgs.poppler_utils ]}";
|
||||
};
|
||||
|
||||
preStart = ''
|
||||
|
||||
Reference in New Issue
Block a user