A helpful script for assisting in the migration of serversideup/php v2 → v3.
Caution
Be sure to have tested backups before running this script. Root permissions are required, and the script will change the ownership of directories within the Docker volumes base directory. Use this script at your own risk.
curl -o change-volume-permissions.sh https://raw.githubusercontent.com/serversideup/docker-volume-change-permission-script/main/change-volume-permissions.sh && chmod +x change-volume-permissions.sh
bash change-volume-permissions.sh --volume-prefix <prefix> --permissions <user:group> [--dry-run]
--volume-prefix
: Specific prefix of directories to search within the Docker volumes base directory."--permissions
: User and group to change ownership to, formatted as user:group."--dry-run
: Optional flag to simulate changes without applying them."
Read our migration guide: https://serversideup.net/open-source/docker-php/docs/guide/migrating-from-v2-to-v3