Merge pull request #124 from lwis/update-docker

Fix Docker configuration for DISABLE_AUTHENTICATION
This commit is contained in:
MichaelEischer 2021-05-15 18:39:42 +02:00 committed by GitHub
commit 1ca9ca7e50
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 1 deletions

View file

@ -0,0 +1,8 @@
Bugfix: Fix Docker configuration for DISABLE_AUTHENTICATION
A regression was introduced which caused the DISABLE_AUTHENTICATION environment
variable to stop working in Docker configurations. This has been fix by
automatically setting the option `--no-auth` to disable authentication.
https://github.com/restic/rest-server/issues/119
https://github.com/restic/rest-server/pull/124

View file

@ -2,7 +2,9 @@
set -e
if [ -z "$DISABLE_AUTHENTICATION" ]; then
if [ -n "$DISABLE_AUTHENTICATION" ]; then
OPTIONS="--no-auth $OPTIONS"
else
if [ ! -f "$PASSWORD_FILE" ]; then
touch "$PASSWORD_FILE"
fi