fixxxxxxx
This commit is contained in:
@@ -368,11 +368,17 @@ in
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
before = [ "wafrn.service" ];
|
||||
after = [ "docker.service" ];
|
||||
path = [ pkgs.nodejs pkgs.coreutils ];
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
RemainAfterExit = true;
|
||||
};
|
||||
script = ''
|
||||
if [ ! -f "${cfg.source}/package-lock.json" ]; then
|
||||
echo "wafrn-nix: package-lock.json missing, generating with npm" >&2
|
||||
(cd "${cfg.source}" && npm install --package-lock-only --ignore-scripts)
|
||||
fi
|
||||
|
||||
install -m 0600 ${envTemplate} ${serviceEnvFile}
|
||||
${optionalString (cfg.secretsFile != null) ''
|
||||
cat "${cfg.secretsFile}" >> ${serviceEnvFile}
|
||||
|
||||
Reference in New Issue
Block a user