Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions apps/tmbitwarden.sh
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,12 @@ SUBDOMAIN=$(grep ^url "$BITWARDEN_HOME"/bwdata/config.yml)
SUBDOMAIN=${SUBDOMAIN##*url: http://}
sed -i "s|^url: .*|url: https://$SUBDOMAIN|g" "$BITWARDEN_HOME"/bwdata/config.yml
sed -i 's|http://|https://|g' "$BITWARDEN_HOME"/bwdata/env/global.override.env
check_command sudo -u "$BITWARDEN_USER" ./bitwarden.sh rebuild
# The following order was recommended here: https://github.com/bitwarden/server/issues/582#issuecomment-551961505
print_text_in_color "$ICyan" "Starting Bitwarden for the first time, please be patient..."
check_command systemctl start bitwarden
start_if_stopped bitwarden
check_command sudo -u "$BITWARDEN_USER" ./bitwarden.sh rebuild
check_command sudo -u "$BITWARDEN_USER" ./bitwarden.sh updateconf
start_if_stopped bitwarden
check_command sudo -u "$BITWARDEN_USER" ./bitwarden.sh updatedb

# Produce reverse-proxy config and get lets-encrypt certificate
Expand Down