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 3ab9f2d commit 502fa8c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/combustion/templates/26-embedded-registry.sh.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
set -euo pipefail

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

cat <<- EOF > /etc/systemd/system/eib-embedded-registry.service
cat <<-EOF >/etc/systemd/system/eib-embedded-registry.service
[Unit]
Description=Load and Serve Embedded Registry
After=network.target
Expand All @@ -22,4 +22,4 @@ Restart=on-failure
WantedBy=multi-user.target
EOF

systemctl enable eib-embedded-registry.service
systemctl enable eib-embedded-registry.service

0 comments on commit 502fa8c

Please sign in to comment.