Spiegel von
https://github.com/dani-garcia/vaultwarden.git
synchronisiert 2024-11-05 02:28:00 +01:00
Toggle SSO button depending on SSO_ENABLED in docker start
Dieser Commit ist enthalten in:
Ursprung
83ff5cc892
Commit
331a3beb55
3 geänderte Dateien mit 8 neuen und 7 gelöschten Zeilen
|
@ -24,10 +24,8 @@ services:
|
|||
profiles: ["VaultWarden"]
|
||||
network_mode: "host"
|
||||
build:
|
||||
context: ../../..
|
||||
context: ../..
|
||||
dockerfile: Dockerfile
|
||||
depends_on:
|
||||
- keycloak
|
||||
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
|
||||
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 "${@}"
|
||||
|
|
Laden …
In neuem Issue referenzieren