-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Perl modules not being copied on minor update #95
Comments
Hi, That condition is in place to avoid overwriting custom modifications done inside I'm working on a patch right now to fix this behavior. |
upgraded perl modules on /opt/otrs/Kernel when a minor upgrade is detected. Fixes issue #95.
@bschmalhofer please test fix on branch |
Hello Juan, I have taken a look at
I did the following sanity checks:
|
The above steps are not exactly the real steps, as I doubled up a couple of times. |
It would be easier if you have used docker-compose-prod.yml to launch the OTRS 6.0.28 image first to create a new install, then stop it and use docker-compose.yml, update the Dockerfile to the latest versoin 6.0.29 (which I will update after I merge this fix), build it and launch it using the same volumes. Anyway I'm glad it worked, I will merge the fix into master as soon as I can. |
Yes, you are right. I realized only after the second try that the code checked against the DOCKER_VERSION that is defined in the Dockerfile. |
Fix merged, thanks for reporting. |
Hi,
I am working on improving the Docker support for OTOBO, specifically RotherOSS/otobo#203 . Of course I'm looking at docker-otrs for ideas. Thank you for your inspiring work!
My understanding is that for a minor version, or patch level, upgrade at least two steps must be executed.
scripts/DBUpdate-to-6.pl --non-interactive
Step 1. seems to be handled in
check_host_mount_dir
. I understand that this function is called when firsttime is still present. But how can it be that the copying is actually done when there is the condition is:if ([ "$(ls -A ${OTRS_CONFIG_MOUNT_DIR})" ] && [ ! "$(ls -A ${OTRS_CONFIG_DIR})" ]) || [ "${OTRS_UPGRADE}" == "yes" ];
$(ls -A ${OTRS_CONFIG_DIR})
is, as far as I understand it, true because the previous installation still exists in the mounted volume ./volumes/config .Setting
$OTRS_UPGRADE="yes"`seems to be no option as this would trigger a major version upgrade. Did I miss anything or is this a bug in functions.sh ?The text was updated successfully, but these errors were encountered: