aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rwxr-xr-xrun_onchange_after_deploy-etc.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/run_onchange_after_deploy-etc.sh b/run_onchange_after_deploy-etc.sh
index d23eebe..e016fa1 100755
--- a/run_onchange_after_deploy-etc.sh
+++ b/run_onchange_after_deploy-etc.sh
@@ -13,7 +13,7 @@ for f in \
systemd/system.conf.d/timeout.conf
do
doas mkdir -p "/etc/$(dirname "$f")"
- doas cp "$CHEZMOI_SOURCE_DIR/etc/$f" "/etc/$f"
+ doas cp --remove-destination "$CHEZMOI_SOURCE_DIR/etc/$f" "/etc/$f"
done
# etc2/ — must be real files (e.g. reflector refuses symlinks)
@@ -21,5 +21,5 @@ for f in \
xdg/reflector/reflector.conf
do
doas mkdir -p "/etc/$(dirname "$f")"
- doas cp "$CHEZMOI_SOURCE_DIR/etc2/$f" "/etc/$f"
+ doas cp --remove-destination "$CHEZMOI_SOURCE_DIR/etc2/$f" "/etc/$f"
done