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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user