Fix up perms for chroot.d better
[buildd-scripts.git] / bin / build-client
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