Update files for FTS docker-compose update (#2215)

* Update files for FTS docker-compose update

Signed-off-by: Ark74 <ark@switnet.org>

* Fix typo.

Signed-off-by: Ark74 <ark@switnet.org>
This commit is contained in:
Luis Guzman 2022-02-01 00:33:23 -06:00 committed by GitHub
parent e671dd9b00
commit 093bc42203
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 1 deletions

13
lib.sh
View File

@ -1660,6 +1660,19 @@ then
echo "Docker image just got updated! We just updated $2 docker image automatically! $(date +%Y%m%d)" >> "$VMLOGS"/update.log
fi
}
# docker-compose_update 'fts_os-node' 'Full Text Search' "$OPNSDIR"
# (docker conainter name = $1, the name in text = $2 , docker-compose directory = $3)
docker-compose_update() {
if is_docker_running && docker ps -a --format "{{.Names}}" | grep -q "^$1$"
then
cd "$3"
docker-compose pull
docker-compose up -d --remove-orphans
docker image prune -a -f
print_text_in_color "$IGreen" "$2 docker image just got updated!"
echo "Docker image just got updated! We just updated $2 docker image automatically! $(date +%Y%m%d)" >> "$VMLOGS"/update.log
fi
}
# countdown 'message looks like this' 10
countdown() {

View File

@ -586,7 +586,7 @@ $DOCKER_RUN_OUTPUT"
docker_update_specific 'onlyoffice' 'OnlyOffice'
# Full Text Search
docker_update_specific 'fts_esror' 'Full Text Search'
docker_update_specific 'fts_os-node' 'Full Text Search'
docker-compose_update 'fts_os-node' 'Full Text Search' "$OPNSDIR"
# Plex
docker_update_specific 'plex' "Plex Media Server"
fi