summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPedro Alvarez <pedro.alvarez@codethink.co.uk>2014-02-14 18:04:43 (GMT)
committerPedro Alvarez <pedro.alvarez@codethink.co.uk>2014-02-14 18:04:43 (GMT)
commit20e569ae2848291e68bd834eeda65120ffdf8b0c (patch)
treef1e9f6115c6a4aa89941b48fcb13e7fae865c129
parente8fdfa8dd233fb70f2e3dc4d74cd6a30785bdd04 (diff)
downloadtbdiff-baserock/pedroalvarez/bsc-rework2.tar.gz
Check also permission changesbaserock/pedroalvarez/bsc-rework2
-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