mirror of
https://gitlab.com/veilid/veilid.git
synced 2024-10-01 01:26:08 -04:00
Added --delete option to rsync push to repo server
The rsync push successfully put the new repo files on the repo server, but also left the original files in place which caused old packages and repo errata to build up over time. Adding the --delete switch results removal of files on the repo server that were deleted as part of the the distribution scripts "Clean and reset the workspaces" section.
This commit is contained in:
parent
c9d2b354f7
commit
571bd45783
@ -58,7 +58,7 @@ gpgkey=https://packages.veilid.net/gpg/veilid-packages-key.public" > $HOME/srv/r
|
|||||||
# Tar the repo data and transfer to the repo server
|
# Tar the repo data and transfer to the repo server
|
||||||
echo "Moving the repo scaffold to the repo server"
|
echo "Moving the repo scaffold to the repo server"
|
||||||
cd $HOME
|
cd $HOME
|
||||||
rsync --archive $HOME/srv/* gitlab-runner@10.116.0.3:/srv
|
rsync --archive --delete $HOME/srv/* gitlab-runner@10.116.0.3:/srv
|
||||||
|
|
||||||
# Cleanup
|
# Cleanup
|
||||||
echo "Cleaning up the workspace"
|
echo "Cleaning up the workspace"
|
||||||
|
@ -67,7 +67,7 @@ gpgkey=https://packages.veilid.net/gpg/veilid-packages-key.public" > $HOME/srv/r
|
|||||||
# Tar the repo data and transfer to the repo server
|
# Tar the repo data and transfer to the repo server
|
||||||
echo "Moving the repo scaffold to the repo server"
|
echo "Moving the repo scaffold to the repo server"
|
||||||
cd $HOME
|
cd $HOME
|
||||||
rsync --archive $HOME/srv/* gitlab-runner@10.116.0.3:/srv
|
rsync --archive --delete $HOME/srv/* gitlab-runner@10.116.0.3:/srv
|
||||||
|
|
||||||
# Cleanup
|
# Cleanup
|
||||||
echo "Cleaning up the workspace"
|
echo "Cleaning up the workspace"
|
||||||
|
Loading…
Reference in New Issue
Block a user