mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
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.
This commit is contained in:
parent
0e206660ef
commit
013f61ff4d
|
@ -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>/$USERNAME/g" users_database.yml
|
||||
sed -i '' "s/<USERNAME>/$USERNAME/g" authelia/users_database.yml
|
||||
else
|
||||
sed -i "s/<USERNAME>/$USERNAME/g" users_database.yml
|
||||
sed -i "s/<USERNAME>/$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/<PASSWORD>/$(echo $PASSWORD | sed -e 's/[\/&]/\\&/g')/g" users_database.yml
|
||||
sed -i '' "s/<PASSWORD>/$(echo $PASSWORD | sed -e 's/[\/&]/\\&/g')/g" authelia/users_database.yml
|
||||
else
|
||||
sed -i "s/<PASSWORD>/$(echo $PASSWORD | sed -e 's/[\/&]/\\&/g')/g" users_database.yml
|
||||
sed -i "s/<PASSWORD>/$(echo $PASSWORD | sed -e 's/[\/&]/\\&/g')/g" authelia/users_database.yml
|
||||
fi
|
||||
else
|
||||
echo "Password cannot be empty"
|
||||
|
|
Loading…
Reference in New Issue
Block a user