Fix up perms for chroot.d better
authorSteve McIntyre <steve@einval.com>
Mon, 29 Oct 2018 11:18:54 +0000 (11:18 +0000)
committerSteve McIntyre <steve@einval.com>
Mon, 29 Oct 2018 11:18:54 +0000 (11:18 +0000)
Don't sync into place directly and then fix up - sync to an incoming
location, then use install to make sure perms are right.

bin/build-client
build-config/schroot/local-chroot.d/sid-armel-sbuild-9o0hzk [moved from build-config/schroot/chroot.d/sid-armel-sbuild-9o0hzk with 100% similarity]
build-config/schroot/local-chroot.d/sid-armhf-sbuild-ov4BWj [moved from build-config/schroot/chroot.d/sid-armhf-sbuild-ov4BWj with 100% similarity]

index bc6a761..1c68bfe 100755 (executable)
@@ -27,7 +27,7 @@ fi
 
 attempt_update () {
     rsync -a build@jack:build-config/ /etc/
-    chown -R root: /etc/schroot/chroot.d/
+    install -m 755 -o root -g root /etc/schroot/local-chroot.d/* /etc/schroot/chroot.d/
     rsync -a --delete build@jack:chroots/ /chroot/rebuildd/chroots/
     apt-get update