disable debug mode by default
All checks were successful
ci/woodpecker/pr/ci Pipeline was successful
ci/woodpecker/pr/test-image Pipeline was successful

This commit is contained in:
OCram85 2024-05-14 07:38:26 +02:00
parent 8a94b09c87
commit f78508b910
2 changed files with 2 additions and 3 deletions

View File

@ -6,7 +6,7 @@ LABEL org.opencontainers.image.authors="marco@ocram85.com"
#ENV PLUGIN_FILE_NAME #ENV PLUGIN_FILE_NAME
#ENV PLUGIN_UPDATE #ENV PLUGIN_UPDATE
ENV PLUGIN_DEBUG="1" #ENV PLUGIN_DEBUG="1"
USER root USER root
COPY --chown=100:101 --chmod=755 ./gitea-package.sh /app/gitea-package.sh COPY --chown=100:101 --chmod=755 ./gitea-package.sh /app/gitea-package.sh
#RUN [ "chmod", "+x", "/app/gitea-package.sh" ] #RUN [ "chmod", "+x", "/app/gitea-package.sh" ]

View File

@ -56,10 +56,9 @@ main() {
if [ -n "$PLUGIN_DEBUG" ]; then if [ -n "$PLUGIN_DEBUG" ]; then
sayW "Debug mode enabled." sayW "Debug mode enabled."
showSettings showSettings
sayW "Available ENV vars:"
showENV showENV
exit 0 exit 0
else
sayW "Debug mode disabled."
fi fi
} }