When running an upgrade in a Docker container with the site directory being a volume (I'm currently working on this image: https://codeberg.org/container-library/processwire), I'm getting the following message:
Warning: rename(): The first argument to copy() function cannot be a directory in /var/www/html/site/modules/ProcessWireUpgrade/ProcessWireUpgrade.module on line 854
Warning: rename(/var/www/html/site/assets/cache/ProcessWireUpgrade/processwire-dev/wire/,/var/www/html/wire-3.0.175/): Invalid cross-device link in /var/www/html/site/modules/ProcessWireUpgrade/ProcessWireUpgrade.module on line 854
ProcessWireUpgrade: Unable to rename /site/assets/cache/ProcessWireUpgrade/processwire-dev/wire/ => /wire-3.0.175/
This is obviously due to the fact that the site directory is on a different filesystem, as it's a Docker volume - this could also happen with classical filesystems though. Would it be possible to recursively copy the directory in that case instead of using "rename"?
When running an upgrade in a Docker container with the
sitedirectory being a volume (I'm currently working on this image: https://codeberg.org/container-library/processwire), I'm getting the following message:This is obviously due to the fact that the
sitedirectory is on a different filesystem, as it's a Docker volume - this could also happen with classical filesystems though. Would it be possible to recursively copy the directory in that case instead of using "rename"?