set sensible perms on rsync

This commit is contained in:
Leif Johansson 2018-02-12 23:53:00 +01:00
parent dff2aefc6e
commit 52c169993a

View file

@ -147,7 +147,7 @@ class md_signer($dest_host="localhost",$dest_dir="") {
ssh_privkey => safe_hiera("publisher_ssh_privkey","NOT SET IN HIERA")
} ->
sunet::scriptherder::cronjob { "${name}-publish":
cmd => "env RSYNC_ARGS='--chown=www-data:www-data' /usr/local/bin/mirror-mdq.sh http://localhost root@${dest_host}:${dest_dir}",
cmd => "env RSYNC_ARGS='--chown=www-data:www-data --chmod=D0755,F0664' /usr/local/bin/mirror-mdq.sh http://localhost root@${dest_host}:${dest_dir}",
minute => '*/5',
ok_criteria => ['exit_status=0'],
warn_criteria => ['max_age=30m']