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.
This commit is contained in:
Michael Weiss 2019-04-27 19:10:43 +02:00
parent 22348f951c
commit 753e1e0bab
No known key found for this signature in database
GPG Key ID: 5BE487C4D4771D83

View File

@ -117,7 +117,7 @@ in {
"ln -sfT \"${cfg.webroot}\" web"} "ln -sfT \"${cfg.webroot}\" web"}
mkdir -p dump mkdir -p dump
# Check that both database configs are symlinks before overwriting them # 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 echo "KDB/DB_CONFIG exists but is not a symlink." >&2
exit 1 exit 1
fi fi