1#!/bin/sh 2 3if [ -r /etc/vaultwarden.sh ]; then 4 . /etc/vaultwarden.sh 5elif [ -r /etc/bitwarden_rs.sh ]; then 6 echo "### You are using the old /etc/bitwarden_rs.sh script, please migrate to /etc/vaultwarden.sh ###" 7 . /etc/bitwarden_rs.sh 8fi 9 10if [ -d /etc/vaultwarden.d ]; then 11 for f in /etc/vaultwarden.d/*.sh; do 12 if [ -r $f ]; then 13 . $f 14 fi 15 done 16elif [ -d /etc/bitwarden_rs.d ]; then 17 echo "### You are using the old /etc/bitwarden_rs.d script directory, please migrate to /etc/vaultwarden.d ###" 18 for f in /etc/bitwarden_rs.d/*.sh; do 19 if [ -r $f ]; then 20 . $f 21 fi 22 done 23fi 24 25exec /vaultwarden "${@}" 26