summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--baserock-system-config-sync/test.yarn5
1 files changed, 5 insertions, 0 deletions
diff --git a/baserock-system-config-sync/test.yarn b/baserock-system-config-sync/test.yarn
index 41fe620..6f5227e 100644
--- a/baserock-system-config-sync/test.yarn
+++ b/baserock-system-config-sync/test.yarn
@@ -133,6 +133,11 @@ $
mount_disk="$(findmnt / -n -l -o SOURCE | cut -f 1 | cut -d [ -f 1)"
mount $mount_disk $tmpdir
diff files/$MATCH_2 $tmpdir/systems/$MATCH_1/run/etc/config.conf
+ permissions1=$(ls -l files/$MATCH_2 | cut -f 1 -d ' ')
+ permissions2=$(ls -l $tmpdir/systems/$MATCH_1/run/etc/config.conf | cut -f 1 -d ' ')
+ if [ $permissions1 != $permissions2 ]; then
+ die "EH! persmissions problem"
+ fi
umount $tmpdir
rm -r $tmpdir