Commit 104103af2ae7ca42f2cb66759c4620d0aa665403
1 parent
b8341ba3
Exists in
master
and in
79 other branches
Rakefile: don't override $CHAKE_RSYNC_OPTIONS
including anything set on local.rake
Showing
1 changed file
with
3 additions
and
3 deletions
Show diff stats
Rakefile
| ... | ... | @@ -14,11 +14,11 @@ config_file = "config/#{$SPB_ENV}/config.yaml" |
| 14 | 14 | iptables_file = "config/#{$SPB_ENV}/iptables-filter-rules" |
| 15 | 15 | |
| 16 | 16 | ENV['CHAKE_TMPDIR'] = "tmp/chake.#{$SPB_ENV}" |
| 17 | - | |
| 18 | 17 | ENV['CHAKE_SSH_CONFIG'] = ssh_config_file |
| 19 | 18 | |
| 20 | -ENV['CHAKE_RSYNC_OPTIONS'] = '--exclude backups' | |
| 21 | -ENV['CHAKE_RSYNC_OPTIONS'] = '--exclude src' | |
| 19 | +ENV['CHAKE_RSYNC_OPTIONS'] ||= '' | |
| 20 | +ENV['CHAKE_RSYNC_OPTIONS'] << ' ' << '--exclude backups' | |
| 21 | +ENV['CHAKE_RSYNC_OPTIONS'] << ' ' << '--exclude src' | |
| 22 | 22 | |
| 23 | 23 | if $SPB_ENV == 'lxc' |
| 24 | 24 | system("mkdir -p config/lxc; sudo lxc-ls -f -F name,ipv4 | sed -e '/^softwarepublico/ !d; s/softwarepublico_//; s/_[0-9_]*/:/ ' > #{ips_file}.new") | ... | ... |