-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Fix warning thrown in update script regarding non-portable flag usage in cp #6197
base: staging
Are you sure you want to change the base?
Fix warning thrown in update script regarding non-portable flag usage in cp #6197
Conversation
Currently, "cp: warning: behavior of -n is non-portable and may change in future; use --update=none instead" is thrown when dealing with SSL certificates. This commit replaces -n with the correct flag.
Yes, also read this a few days prior. Did you tested if this is also working on a few other mailcow supported OS? |
The -n flag deprecation is only present in coreutils >= 9.3, and the replacement flag is only present in versions older than this. A conditional is added to ensure that the new version of the command only runs on systems with coreutils of an appropriate version, using the original on older systems.
Good call to double check that - seems I had a testing version of Debian, with current stable having an older version. I've added a new commit that checks the currently available version of I've now tested this on Ubuntu 24.04, Debian Bookworm and Sid, and Fedora 40, all of which behave as expected, though I don't have an Alma or Rocky VM available to test with at the moment. |
If the |
Can confirm not working on Alma 8 (supported from us) so this must be fiddled around somehow to make it work. |
Contribution Guidelines
What does this PR include?
Short Description
This is a minor fix to the update script. Currently, "cp: warning: behavior of -n is non-portable and may change in future; use --update=none instead" is thrown when dealing with SSL certificates. This commit replaces -n with the correct flag, removing the warning.
Affected Containers
None; affects only the update script
Did you run tests?
What did you tested?
I commented out the "new version check" part of the script on my install to ensure the change wasn't overwritten, and then ran the update script.
What were the final results? (Awaited, got)
Results were as expected - the warning no longer shows, and certificates were copied/left alone as they should be.