fuse doesn't like inter-device move operations.

So the Drone pipeline has to resort to the cp+rm dance instead.
This commit is contained in:
Fabio Manganiello 2023-09-23 16:42:15 +02:00
parent b9e68d69a9
commit 33b26fa8dd
Signed by untrusted user: blacklight
GPG key ID: D90FBA7F76362774

View file

@ -766,7 +766,8 @@ steps:
- echo "--- Updating the S3 bucket" - echo "--- Updating the S3 bucket"
- export NEW_RPM_ROOT="$BUCKET_MNT/rpm_new" - export NEW_RPM_ROOT="$BUCKET_MNT/rpm_new"
- export OLD_RPM_ROOT="$BUCKET_MNT/rpm_old" - export OLD_RPM_ROOT="$BUCKET_MNT/rpm_old"
- mv "$TMP_RPM_ROOT" "$NEW_RPM_ROOT" - cp -r "$TMP_RPM_ROOT" "$NEW_RPM_ROOT"
- rm -rf "$TMP_RPM_ROOT"
- mv "$RPM_ROOT" "$OLD_TMP_ROOT" - mv "$RPM_ROOT" "$OLD_TMP_ROOT"
- mv "$NEW_RPM_ROOT" "$RPM_ROOT" - mv "$NEW_RPM_ROOT" "$RPM_ROOT"
- rm -rf "$OLD_TMP_ROOT" - rm -rf "$OLD_TMP_ROOT"