mirror of
https://github.com/dani-garcia/vaultwarden
synced 2024-11-14 14:02:23 +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 lines
251 B
Bash
Executable file
15 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 "${@}"
|