Skip to content

Commit

Permalink
V1.1.1 (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
aSouchereau authored Aug 9, 2024
1 parent bd54127 commit 3cedfcd
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ volumes:
### Database
#### sqlite
By default, this image looks for a db.sqlite3 file in the top level of your mounted data directory. Set environment variable `DB_TYPE` to `sqlite` or leave it unset.
-#### MariaDB/MySQL
#### MariaDB/MySQL
For MySQL or MariaDB setups, this image requires your vaultwarden database credentials to connect and create a dump file. Set the following environment variables
- `DB_TYPE` ("mysql")
- `DB_HOST` (server address or name of docker container running db server)
Expand Down
2 changes: 1 addition & 1 deletion scripts/backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ case "$DB_TYPE" in
backup_mysql
;;
*)
echo "[Error] Invalid database type. Skipping database backup..."
echo "[Warning] Invalid database type. Skipping database backup..."
;;
esac

Expand Down
8 changes: 6 additions & 2 deletions scripts/entry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ trap 'cleanup' SIGINT SIGTERM
echo "╦ ╦╦ ╦ ╔╗ ╔═╗╔═╗╦╔═╦ ╦╔═╗ ╔═╗╔═╗╔═╗";
echo "╚╗╔╝║║║ ─── ╠╩╗╠═╣║ ╠╩╗║ ║╠═╝ ─── ║ ╦╠╣ ╚═╗";
echo " ╚╝ ╚╩╝ ╚═╝╩ ╩╚═╝╩ ╩╚═╝╩ ╚═╝╚ ╚═╝";
echo "v1.1.0";
echo "v1.1.1";


# populate output for dev testing
Expand All @@ -36,7 +36,11 @@ DB_TYPE="${DB_TYPE:-"sqlite"}"
case "$DB_TYPE" in
sqlite)
echo "Checking sqlite database"
sqlite3 "${STAGING_DIR}/db.sqlite3" "pragma integrity_check;"
if sqlite3 "${STAGING_DIR}/db.sqlite3" "pragma integrity_check;"; then
echo ""
else
echo "[Warning]: database file failed initial integrity check"
fi
;;
mysql|mariadb)
result=$(mysql --host $DB_HOST --port $DB_PORT \
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.1.0
1.1.1

0 comments on commit 3cedfcd

Please sign in to comment.