1
0
mirror of https://github.com/bitwarden/server.git synced 2024-12-30 18:17:36 +01:00
bitwarden-server/scripts/bitwarden.sh

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
1.1 KiB
Bash
Raw Normal View History

2017-08-19 23:59:04 +02:00
#!/usr/bin/env bash
set -e
cat << "EOF"
_ _ _ _
| |__ (_) |___ ____ _ _ __ __| | ___ _ __
| '_ \| | __\ \ /\ / / _` | '__/ _` |/ _ \ '_ \
| |_) | | |_ \ V V / (_| | | | (_| | __/ | | |
|_.__/|_|\__| \_/\_/ \__,_|_| \__,_|\___|_| |_|
EOF
cat << EOF
Open source password management solutions
2017-08-20 03:45:13 +02:00
Copyright 2015-$(date +'%Y'), 8bit Solutions LLC
2017-08-19 23:59:04 +02:00
https://bitwarden.com, https://github.com/bitwarden
2017-08-23 22:15:42 +02:00
===================================================
2017-08-19 23:59:04 +02:00
EOF
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
SCRIPT_NAME=$(basename "$0")
2017-08-23 22:22:02 +02:00
SCRIPT_PATH="$DIR/$SCRIPT_NAME"
2022-03-01 22:19:09 +01:00
BITWARDEN_SCRIPT_URL="https://go.btwrdn.co/bw-sh"
2017-08-20 03:45:13 +02:00
2022-03-01 22:19:09 +01:00
if curl -L -s -w "http_code %{http_code}" -o $SCRIPT_PATH.1 $BITWARDEN_SCRIPT_URL | grep -q "^http_code 20[0-9]"
then
mv $SCRIPT_PATH.1 $SCRIPT_PATH
chmod u+x $SCRIPT_PATH
echo "We have moved our self-hosted scripts to their own repository (https://github.com/bitwarden/self-host). Your 'bitwarden.sh' script has been automatically upgraded. Please run it again."
2022-02-24 16:36:59 +01:00
else
2022-03-01 22:19:09 +01:00
rm -f $SCRIPT_PATH.1
2022-02-24 16:36:59 +01:00
fi