mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2024-11-10 15:50:58 +00: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.
16 lines
251 B
Bash
Executable File
16 lines
251 B
Bash
Executable File
#!/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 "${@}"
|