Browse Source
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.pull/1048/head
Jeremy Lin
5 years ago
14 changed files with 41 additions and 13 deletions
@ -0,0 +1,15 @@ |
|||
#!/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 "${@}" |
Loading…
Reference in new issue