summaryrefslogtreecommitdiff
path: root/baserock-system-config-sync/baserock-system-config-sync
diff options
context:
space:
mode:
Diffstat (limited to 'baserock-system-config-sync/baserock-system-config-sync')
-rwxr-xr-xbaserock-system-config-sync/baserock-system-config-sync5
1 files changed, 3 insertions, 2 deletions
diff --git a/baserock-system-config-sync/baserock-system-config-sync b/baserock-system-config-sync/baserock-system-config-sync
index e297197..a1a4a85 100755
--- a/baserock-system-config-sync/baserock-system-config-sync
+++ b/baserock-system-config-sync/baserock-system-config-sync
@@ -123,7 +123,7 @@ merge_regular_file() {
# V1 Vuser V2 action
# ------------------------------------------
# none none none inconceivable!
- # exists none none use V1
+ # exists none none do nothing
# none exists none use Vuser
# none none exists use V2
# exists none exists use V2
@@ -137,7 +137,8 @@ merge_regular_file() {
case "$v1_exists $vu_exists $v2_exists" in
'exists none none')
- cp -a "$v1" "$vt"
+ # Do nothing, if the file was removed in vu and v2 doesn't have it,
+ # then the file is not longer needed
;;
'none exists none')
cp -a "$vu" "$vt"