From 013f61ff4d46c1aee0394d18315f3f67903c0c6c Mon Sep 17 00:00:00 2001 From: Amir Zarrinkafsh Date: Fri, 19 Jun 2020 11:06:28 +1000 Subject: [PATCH] [BUGFIX] Fix local compose bundle regression from #1113 (#1130) As files were moved to accommodate the new `/config` volume structure the `setup.sh` for the local compose bundle also requires updating to point to the new file locations. Fixes #1129. --- compose/local/setup.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/compose/local/setup.sh b/compose/local/setup.sh index 0907f33d..d9b433ef 100755 --- a/compose/local/setup.sh +++ b/compose/local/setup.sh @@ -44,9 +44,9 @@ docker run -a stdout -v $PWD/traefik/certs:/tmp/certs authelia/authelia authelia if [[ $DOMAIN != "example.com" ]]; then if [[ $(uname) == "Darwin" ]]; then - sed -i '' "s/example.com/$DOMAIN/g" {docker-compose.yml,configuration.yml} + sed -i '' "s/example.com/$DOMAIN/g" {docker-compose.yml,authelia/configuration.yml} else - sed -i "s/example.com/$DOMAIN/g" {docker-compose.yml,configuration.yml} + sed -i "s/example.com/$DOMAIN/g" {docker-compose.yml,authelia/configuration.yml} fi fi @@ -54,9 +54,9 @@ username if [[ $USERNAME != "" ]]; then if [[ $(uname) == "Darwin" ]]; then - sed -i '' "s//$USERNAME/g" users_database.yml + sed -i '' "s//$USERNAME/g" authelia/users_database.yml else - sed -i "s//$USERNAME/g" users_database.yml + sed -i "s//$USERNAME/g" authelia/users_database.yml fi else echo "Username cannot be empty" @@ -68,9 +68,9 @@ password if [[ $PASSWORD != "" ]]; then PASSWORD=$(docker run authelia/authelia authelia hash-password $PASSWORD | sed 's/Password hash: //g') if [[ $(uname) == "Darwin" ]]; then - sed -i '' "s//$(echo $PASSWORD | sed -e 's/[\/&]/\\&/g')/g" users_database.yml + sed -i '' "s//$(echo $PASSWORD | sed -e 's/[\/&]/\\&/g')/g" authelia/users_database.yml else - sed -i "s//$(echo $PASSWORD | sed -e 's/[\/&]/\\&/g')/g" users_database.yml + sed -i "s//$(echo $PASSWORD | sed -e 's/[\/&]/\\&/g')/g" authelia/users_database.yml fi else echo "Password cannot be empty"