Skip to content
Snippets Groups Projects
  1. Aug 16, 2019
  2. Aug 07, 2019
  3. Jul 08, 2019
  4. Jul 01, 2019
  5. Jun 26, 2019
  6. Jun 25, 2019
  7. Jun 22, 2019
  8. Apr 29, 2019
  9. Apr 25, 2019
  10. Feb 12, 2019
  11. Jan 16, 2019
  12. Dec 06, 2018
  13. Nov 28, 2018
  14. Nov 26, 2018
  15. Oct 01, 2018
  16. Aug 28, 2018
    • Emanuele Aina's avatar
      Jenkinsfile: Always force specific permission bits · 5f3c4afe
      Emanuele Aina authored
      
      Using `--no-perms` alone yielded surprising results, such as
      directories with no execute bit set, which could thus not be accessed
      by the web server.
      
      One option would be to use `--no-perms --chmod=ugo=rwX` as suggested by
      the `rsync` man page:
      
      > In summary: to give destination files (both old and new) the source
      > permissions, use --perms.  To give new files the destination-default
      > permissions (while leaving existing files unchanged), make sure that
      > the --perms option is off and use --chmod=ugo=rwX (which ensures that
      > all non-masked bits get enabled)
      
      This would mean that existing files would preserve their permissions.
      But we don't actually care about preserving them, to the contrary we may
      prefer forcing them to a known state such that redeploying from scratch
      would give the same results.
      
      In order to achieve this, set `--chmod=ugo=rwX` in combination with
      `--perms` (implied by `-a`).
      
      Signed-off-by: Emanuele Aina's avatarEmanuele Aina <emanuele.aina@collabora.com>
      5f3c4afe
  17. Aug 21, 2018
  18. Jul 25, 2018
  19. Jul 12, 2018
Loading