-
Notifications
You must be signed in to change notification settings - Fork 787
Consider setting set -eu
globally in nextcloud container entrypoint to catch more errors
#6014
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
Comments
set -eu
globally in nextcloud container entrypointset -eu
globally in nextcloud container entrypoint to catch more errors
Hey, I am honestly against adding this globally as things are not possible to easily debug anymore if we just exit anywhere (it will be put into an uncontrollable state). So I would only add this at places where it is necessary to run without any issue like for the rsync job. I created #6028. However it is not ready yet as we would probably need to think what to do if rsync actually fails: do we touch a file so that when the container restarts, we can print a specific warning or how do we handle this case? What would be your proposal? |
@joshtrichards could you please lend me a hand here? |
The app container's entrypoint currently only uses
set
in a couple spots. We should test impact of enablingset -eu
globally at the top, just like in the community micro-services image here. It should be safe to use alongside the existing ones already in the AIO entrypoint.This should prevent problems that lead to broken installations.
This originally came up because there was a forum post a few weeks I saw where rsync failed, yet the failure was not detected and the installation proceeded.
The text was updated successfully, but these errors were encountered: