confd: prevent sprious errors of symlinks already existing

When/If dagger generations are abandoned we should not bail out if a
recovery generation finds an existing 'order' in the previous gen.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg
2023-06-22 00:12:43 +02:00
committed by Tobias Waldekranz
parent 76b7dce7fc
commit da1bc57b92
+1 -1
View File
@@ -147,7 +147,7 @@ int dagger_claim(struct dagger *d, const char *path)
} else {
err = systemf("mkdir -p %s/%d/action/exit"
" && "
"ln -s ../../top-down-order %s/%d/action/exit/order",
"ln -sf ../../top-down-order %s/%d/action/exit/order",
path, d->current, path, d->current);
if (err)
return err;