mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-07-17 01:31:13 +00:00
Remove warning when compiling only with mysql and add compatibility mode with the old docker script names
This commit is contained in:
parent
6890c25ea1
commit
1e5306b820
2 changed files with 12 additions and 4 deletions
|
@ -2,6 +2,9 @@
|
|||
|
||||
if [ -r /etc/vaultwarden.sh ]; then
|
||||
. /etc/vaultwarden.sh
|
||||
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
|
||||
fi
|
||||
|
||||
if [ -d /etc/vaultwarden.d ]; then
|
||||
|
@ -10,6 +13,13 @@ if [ -d /etc/vaultwarden.d ]; then
|
|||
. $f
|
||||
fi
|
||||
done
|
||||
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
|
||||
if [ -r $f ]; then
|
||||
. $f
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
exec /vaultwarden "${@}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue