improve logging of the bitwarden to vaultwarden update (#2083)

Signed-off-by: szaimen <szaimen@e.mail.de>
This commit is contained in:
szaimen 2021-08-16 21:26:05 +02:00 committed by GitHub
parent e6d9133db7
commit 9506747846
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -508,13 +508,18 @@ we have removed Watchtower from this server. Updates will now happen for each co
sed -i 's|bitwardenrs/server:latest|vaultwarden/server:latest|' /tmp/bitwarden-conf
docker stop bitwarden_rs
docker rm bitwarden_rs
if ! bash /tmp/bitwarden-conf
if ! DOCKER_RUN_OUTPUT=$(bash /tmp/bitwarden-conf 2>&1)
then
mv /tmp/bitwarden-conf "$SCRIPTS"
print_text_in_color "$IRed" "Could not update Bitwarden RS. Please recreate the docker container yourself.
You can find its config here: $SCRIPTS/bitwarden-conf"
check_command cp /tmp/bitwarden-conf "$SCRIPTS"
chmod 700 "$SCRIPTS/bitwarden-conf"
notify_admin_gui "Could not update Bitwarden RS." "Please recreate the docker container yourself.
You can find its config here: $SCRIPTS/bitwarden-conf
See the debug log below:
$DOCKER_RUN_OUTPUT"
msg_box "Could not update Bitwarden RS. Please recreate the docker container yourself.
You can find its config here: $SCRIPTS/bitwarden-conf"
You can find its config here: $SCRIPTS/bitwarden-conf
See the debug log below:
$DOCKER_RUN_OUTPUT"
else
docker image prune -a -f
fi