2020-07-05 22:26:20 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2024-08-27 17:37:17 +00:00
|
|
|
if [ -n "${UMASK}" ]; then
|
|
|
|
umask "${UMASK}"
|
|
|
|
fi
|
|
|
|
|
2021-04-27 21:18:32 +00:00
|
|
|
if [ -r /etc/vaultwarden.sh ]; then
|
|
|
|
. /etc/vaultwarden.sh
|
2021-04-29 13:58:29 +00:00
|
|
|
elif [ -r /etc/bitwarden_rs.sh ]; then
|
|
|
|
echo "### You are using the old /etc/bitwarden_rs.sh script, please migrate to /etc/vaultwarden.sh ###"
|
|
|
|
. /etc/bitwarden_rs.sh
|
2020-07-05 22:26:20 +00:00
|
|
|
fi
|
|
|
|
|
2021-04-27 21:18:32 +00:00
|
|
|
if [ -d /etc/vaultwarden.d ]; then
|
|
|
|
for f in /etc/vaultwarden.d/*.sh; do
|
2022-07-31 13:45:31 +00:00
|
|
|
if [ -r "${f}" ]; then
|
|
|
|
. "${f}"
|
2020-07-05 22:26:20 +00:00
|
|
|
fi
|
|
|
|
done
|
2021-04-29 13:58:29 +00:00
|
|
|
elif [ -d /etc/bitwarden_rs.d ]; then
|
|
|
|
echo "### You are using the old /etc/bitwarden_rs.d script directory, please migrate to /etc/vaultwarden.d ###"
|
|
|
|
for f in /etc/bitwarden_rs.d/*.sh; do
|
2022-07-31 13:45:31 +00:00
|
|
|
if [ -r "${f}" ]; then
|
|
|
|
. "${f}"
|
2021-04-29 13:58:29 +00:00
|
|
|
fi
|
|
|
|
done
|
2020-07-05 22:26:20 +00:00
|
|
|
fi
|
|
|
|
|
2021-04-27 21:18:32 +00:00
|
|
|
exec /vaultwarden "${@}"
|