mirror of
https://github.com/restic/rest-server.git
synced 2026-09-25 21:41:25 -07:00
Merge pull request #124 from lwis/update-docker
Fix Docker configuration for DISABLE_AUTHENTICATION
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user