mirror of
https://github.com/restic/rest-server.git
synced 2025-10-19 15:43:21 +00:00
Merge pull request #124 from lwis/update-docker
Fix Docker configuration for DISABLE_AUTHENTICATION
This commit is contained in:
commit
1ca9ca7e50
2 changed files with 11 additions and 1 deletions
8
changelog/unreleased/issue-119
Normal file
8
changelog/unreleased/issue-119
Normal 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
|
|
@ -2,7 +2,9 @@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
if [ -z "$DISABLE_AUTHENTICATION" ]; then
|
if [ -n "$DISABLE_AUTHENTICATION" ]; then
|
||||||
|
OPTIONS="--no-auth $OPTIONS"
|
||||||
|
else
|
||||||
if [ ! -f "$PASSWORD_FILE" ]; then
|
if [ ! -f "$PASSWORD_FILE" ]; then
|
||||||
touch "$PASSWORD_FILE"
|
touch "$PASSWORD_FILE"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue