mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-30 12:33:02 +02:00
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:
committed by
Tobias Waldekranz
parent
76b7dce7fc
commit
da1bc57b92
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user