← Back to team overview

launchpad-reviewers team mailing list archive

[Merge] lp:~allenap/maas/tftp-permissions into lp:maas

 

Gavin Panella has proposed merging lp:~allenap/maas/tftp-permissions into lp:maas.

Requested reviews:
  MAAS Maintainers (maas-maintainers)

For more details, see:
https://code.launchpad.net/~allenap/maas/tftp-permissions/+merge/122288

There are no tests because that's a family-size magnum-can of worms.
-- 
https://code.launchpad.net/~allenap/maas/tftp-permissions/+merge/122288
Your team MAAS Maintainers is requested to review the proposed merge of lp:~allenap/maas/tftp-permissions into lp:maas.
=== modified file 'scripts/maas-import-ephemerals'
--- scripts/maas-import-ephemerals	2012-08-30 05:57:05 +0000
+++ scripts/maas-import-ephemerals	2012-08-31 14:19:20 +0000
@@ -295,6 +295,10 @@
         cp -- "$src/$filename" "$tmpdir/"
     done
 
+    # Normalise permissions.
+    find "$tmpdir" -type d -print0 | xargs -r0 chmod u=rwx,go=rx
+    find "$tmpdir" -type f -print0 | xargs -r0 chmod u=rw,go=r
+
     debug 1 "maas-provision install-pxe-image --arch=$arch --subarch=$subarch --release=$release --purpose=commissioning --image=$tmpdir"
     maas-provision install-pxe-image \
         --arch=$arch --subarch=$subarch --release=$release \


Follow ups