-
-
Notifications
You must be signed in to change notification settings - Fork 49
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
Docker entrypoint fixes #753
Conversation
Hey, could you rebase your changes against master? After that, I'll make a review. |
Don't Repeat Yourself Set a variable for the full path to the source file. Create the backup path by appending an extension from `date` output. Also fixed quoting and switched to an `if` block. Clean up block level variables.
The previous format discards information about the local time zone.
Now the format always ends in +00:00, and we can ignore that part again.
Present a leading zero before the month: YYYY-0MM-DD Both YYYY-MM-DD and YYYY-DD-MM are used by people and can be confusing in the beginning of the month.
Without avoiding field splitting a password containing a space changes the number of arguments being set.
Make the intentions clear and don't assume the user knows the special cases for when variables won't be extended. Example: word=animal words=mistake echo "$words vs $word vs ${word}s"
@shumvgolove Rebased and I also made similar changes for the new entrypoint file you added. |
* switched from long to short option to date for POSIX * docker entrypoint-smp-server: explain date format * docker entrypoint-xftp-server: explain date format
I fixed the case to match the date format letters. Also, use words to explain since I don't want everyone to need to read about date formats to understand.
I was either going to quote the dashes too or stop quoting the colons. Having less quotes was more readable.
This reverts commit ba2a93b.
@shumvgolove GitHub did not seem to track this PR state correctly. The date format has been reverted and appropriate comments are included. |
Sorry, got a little busy last week. It appears that |
* docker entrypoint-smp-server: remove %F Used part of the explicit ISO 8601 format, provided by the coreutils date invocation guide. * docker entrypoint-xftp-server: remove %F Used part of the explicit ISO 8601 format, provided by the coreutils date invocation guide.
Thanks! |
Here are most of the changes from my previously NACK'd rewrite PR. #746
Capitalized environment variables still needs to be done and the README will need updates for that part.That work was done in #750 instead.