git.iko.soy/typeable/nixpkgs
on master help sign in
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.

commit753e1e0babd1d22677f08ae59c9322cd63de24d5 authorMichael Weiss <dev.primeos@gmail.com> dateSat 27 Apr 2019, 19:10 (8 years ago) parent22348f9
1 file changed+1−1
nixos/modules/services/security/sks.nix+1−1
nixos/modules/services/security/sks.nix+1−1
@@ -117,7 +117,7 @@ in {
117117 "ln -sfT \"${cfg.webroot}\" web"}
118118 mkdir -p dump
119119 # Check that both database configs are symlinks before overwriting them
120− if [ -e KDB/DB_CONFIG ] && [ ! -L KBD/DB_CONFIG ]; then
120+ if [ -e KDB/DB_CONFIG ] && [ ! -L KDB/DB_CONFIG ]; then
121121 echo "KDB/DB_CONFIG exists but is not a symlink." >&2
122122 exit 1
123123 fi