Spiegel von
https://github.com/dani-garcia/vaultwarden.git
synchronisiert 2024-11-04 02:18:00 +01:00
d5f9b33f66
This is useful for making local customizations upon container start. To use this feature, mount a script into the container as `/etc/bitwarden_rs.sh` and/or a directory of scripts as `/etc/bitwarden_rs.d`. In the latter case, only files with an `.sh` extension are sourced, so files with other extensions (e.g., data/config files) can reside in the same dir. Note that the init scripts are run each time the container starts (not just the first time), so these scripts should be idempotent.
15 Zeilen
251 B
Bash
Ausführbare Datei
15 Zeilen
251 B
Bash
Ausführbare Datei
#!/bin/sh
|
|
|
|
if [ -r /etc/bitwarden_rs.sh ]; then
|
|
. /etc/bitwarden_rs.sh
|
|
fi
|
|
|
|
if [ -d /etc/bitwarden_rs.d ]; then
|
|
for f in /etc/bitwarden_rs.d/*.sh; do
|
|
if [ -r $f ]; then
|
|
. $f
|
|
fi
|
|
done
|
|
fi
|
|
|
|
exec /bitwarden_rs "${@}"
|