3
0
Fork 0
forked from mirrors/nixpkgs

nixos/sks: Fix the module (the pre-start script was broken)

Unfortunately the changes in ab5dcc7068
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"}
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