From 753e1e0babd1d22677f08ae59c9322cd63de24d5 Mon Sep 17 00:00:00 2001 From: Michael Weiss Date: Sat, 27 Apr 2019 19:10:43 +0200 Subject: nixos/sks: Fix the module (the pre-start script was broken) Unfortunately the changes in ab5dcc7068bfaca3a7a2eaa8ad824a86c2595681 introduced a typo (took me a while to spot that...) that broke the whole module (or at least the sks-db systemd unit). The systemd unit was failing with the following error message: ...-unit-script-sks-db-pre-start[xxx]: KDB/DB_CONFIG exists but is not a symlink. --- nixos/modules/services/security/sks.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nixos/modules/services/security') diff --git a/nixos/modules/services/security/sks.nix b/nixos/modules/services/security/sks.nix index 8136a5c763a9..2d717ac94746 100644 --- a/nixos/modules/services/security/sks.nix +++ b/nixos/modules/services/security/sks.nix @@ -117,7 +117,7 @@ in { "ln -sfT \"${cfg.webroot}\" web"} mkdir -p dump # Check that both database configs are symlinks before overwriting them - if [ -e KDB/DB_CONFIG ] && [ ! -L KBD/DB_CONFIG ]; then + if [ -e KDB/DB_CONFIG ] && [ ! -L KDB/DB_CONFIG ]; then echo "KDB/DB_CONFIG exists but is not a symlink." >&2 exit 1 fi -- cgit 1.4.1