Skip to content

Commit

Permalink
feat: use rsync replace cp to handle large size file
Browse files Browse the repository at this point in the history
  • Loading branch information
erpz22 committed Aug 15, 2024
1 parent 502fa8c commit 4a89495
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/combustion/templates/26-embedded-registry.sh.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
set -euo pipefail

mkdir /opt/hauler
rsync -av --progress {{ .RegistryDir }}/hauler /opt/hauler/hauler
rsync -av --progress {{ .RegistryDir }}/*-{{ .RegistryTarSuffix }} /opt/hauler/
cp {{ .RegistryDir }}/hauler /opt/hauler/hauler
rsync -avc {{ .RegistryDir }}/*-{{ .RegistryTarSuffix }} /opt/hauler/

cat <<-EOF >/etc/systemd/system/eib-embedded-registry.service
[Unit]
Expand Down

0 comments on commit 4a89495

Please sign in to comment.