Skip to content
Snippets Groups Projects
Commit 6a68484f authored by Florian Sesser's avatar Florian Sesser
Browse files

Make file does not exist condition more clear

parent 72074728
No related branches found
No related tags found
3 merge requests!180merge develop into production,!177merge develop into staging,!146Manage access to payment metrics
......@@ -173,13 +173,7 @@ in {
# Bail if there is still an old (root-owned) DB file on this system.
# If you hit this, and this /var/db/ file is indeed current, move it to
# /var/lib/zkapissuer/vouchers.sqlite3 and chown it to zkapissuer:zkapissuer.
#
# https://www.freedesktop.org/software/systemd/man/systemd.service.html#Command%20lines
# > If the executable path is prefixed with "+" then the process is
# > executed with full privileges.
serviceConfig.ExecStartPre = [
"+${pkgs.bash}/bin/bash -c '[ ! -f /var/db/vouchers.sqlite3 ]'"
];
unitConfig.ConditionPathExists = "!/var/db/vouchers.sqlite3";
script =
let
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment