Spiegel von
https://github.com/dani-garcia/vaultwarden.git
synchronisiert 2024-11-16 04:12:53 +01:00
Toggle SSO button depending on SSO_ENABLED in docker start
Dieser Commit ist enthalten in:
Ursprung
e736f72e27
Commit
a90817e914
3 geänderte Dateien mit 8 neuen und 7 gelöschten Zeilen
|
@ -24,10 +24,8 @@ services:
|
||||||
profiles: ["VaultWarden"]
|
profiles: ["VaultWarden"]
|
||||||
network_mode: "host"
|
network_mode: "host"
|
||||||
build:
|
build:
|
||||||
context: ../../..
|
context: ../..
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
depends_on:
|
depends_on:
|
||||||
- keycloak
|
- keycloak
|
||||||
env_file: ${ENV}.env
|
env_file: ${ENV}.env
|
||||||
volumes:
|
|
||||||
- ./vaultwarden.sh:/etc/vaultwarden.sh
|
|
||||||
|
|
|
@ -1,4 +0,0 @@
|
||||||
#!/usr/bin/env sh
|
|
||||||
|
|
||||||
# Remove CSS to hide SSO Link
|
|
||||||
sed -i 's#a\[routerlink="/sso"\],##' /web-vault/app/main.*.css
|
|
|
@ -22,4 +22,11 @@ elif [ -d /etc/bitwarden_rs.d ]; then
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Toggle the SSO Link
|
||||||
|
if [ "$SSO_ENABLED" = "true" ]; then
|
||||||
|
sed -i 's#a\[routerlink="/sso"\]#a\[routerlink="/sso-sed"\]#' /web-vault/app/main.*.css
|
||||||
|
else
|
||||||
|
sed -i 's#a\[routerlink="/sso-sed"\]#a\[routerlink="/sso"\]#' /web-vault/app/main.*.css
|
||||||
|
fi
|
||||||
|
|
||||||
exec /vaultwarden "${@}"
|
exec /vaultwarden "${@}"
|
||||||
|
|
Laden …
In neuem Issue referenzieren