mirror of
https://github.com/nextcloud/vm.git
synced 2025-10-26 11:27:32 +00:00
fix watchtower updates (#1821)
Signed-off-by: szaimen <szaimen@e.mail.de>
This commit is contained in:
parent
b748ca17e9
commit
fa7a24ea85
4
lib.sh
4
lib.sh
@ -1394,9 +1394,9 @@ fi
|
||||
|
||||
|
||||
# Update specific Docker image
|
||||
# docker_update_specific bitwarden_rs Bitwarden RS (actual docker image = $1, the name in text = $2
|
||||
# docker_update_specific 'bitwarden_rs' 'Bitwarden RS' (docker conainter name = $1, the name in text = $2)
|
||||
docker_update_specific() {
|
||||
if does_this_docker_exist "$1" "$2"
|
||||
if is_docker_running && docker ps -a --format "{{.Names}}" | grep -q "^$1$"
|
||||
then
|
||||
docker run --rm --name temporary_watchtower -v /var/run/docker.sock:/var/run/docker.sock containrrr/watchtower --cleanup --run-once "$1"
|
||||
print_text_in_color "$IGreen" "$2 docker image just got updated!"
|
||||
|
||||
@ -377,15 +377,15 @@ we have removed Watchtower from this server. Updates will now happen for each co
|
||||
fi
|
||||
# Update selected images
|
||||
# Bitwarden RS
|
||||
docker_update_specific 'bitwardenrs/server' "Bitwarden RS"
|
||||
docker_update_specific 'bitwarden_rs' "Bitwarden RS"
|
||||
# Collabora CODE
|
||||
docker_update_specific 'collabora/code' 'Collabora'
|
||||
docker_update_specific 'code' 'Collabora'
|
||||
# OnlyOffice
|
||||
docker_update_specific 'onlyoffice/documentserver' 'OnlyOffice'
|
||||
docker_update_specific 'onlyoffice' 'OnlyOffice'
|
||||
# Full Text Search
|
||||
docker_update_specific 'ark74/nc_fts' 'Full Text Search'
|
||||
docker_update_specific 'fts_esror' 'Full Text Search'
|
||||
# Plex
|
||||
docker_update_specific 'plexinc/pms-docker' "Plex Media Server"
|
||||
docker_update_specific 'plex' "Plex Media Server"
|
||||
fi
|
||||
|
||||
# Cleanup un-used packages
|
||||
|
||||
Loading…
Reference in New Issue
Block a user