From 59013f4adfc1c6903600fa7e762287b65f3831a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Sch=C3=A4ferdiek?= Date: Sat, 11 Dec 2021 13:34:01 +0100 Subject: [PATCH] Use docker-compose as binary --- usr/local/bin/docker_compose_update | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr/local/bin/docker_compose_update b/usr/local/bin/docker_compose_update index b686fe0..cebd83a 100755 --- a/usr/local/bin/docker_compose_update +++ b/usr/local/bin/docker_compose_update @@ -15,7 +15,7 @@ The following are at least required for the script to work: - DOCKER_COMPOSE_UPDATE_IGNORES=("mailcow") // folder names which will be ignored and not be updated, at least () is required - DOCKER_COMPOSE_UPDATE_COMMANDS[aDirectoryName]="./callFancyScriptInDirectory" // use another command to update, multiple possible. Example: accessor has to match the folder, e.g. /aDirectoryName will use command "./callFancyScriptInDirectory" when changing directory into it. -- DOCKER_COMPOSE_UPDATE_COMMAND="sudo docker compose down; sudo docker compose pull; sudo docker compose up -d;" // the default update command for deployments +- DOCKER_COMPOSE_UPDATE_COMMAND="sudo docker-compose down; sudo docker-compose pull; sudo docker-compose up -d;" // the default update command for deployments - DOCKER_COMPOSE_UPDATE_FAIL_ON_UPDATE_ERROR="false" // if set to true, script fails if at least one update procedure failed You can copy this script to '/usr/local/bin' and use create a custom CONFIG_FILE as user. Examples can be found in '/usr/share/doc/'. @@ -50,7 +50,7 @@ source_config() { } apply_defaults() { [[ -z ${DOCKER_COMPOSE_UPDATE_IGNORES} ]] && DOCKER_COMPOSE_UPDATE_IGNORES=(); - [[ -z ${DOCKER_COMPOSE_UPDATE_COMMAND} ]] && DOCKER_COMPOSE_UPDATE_COMMAND="docker compose down; docker compose pull; docker compose up -d;" + [[ -z ${DOCKER_COMPOSE_UPDATE_COMMAND} ]] && DOCKER_COMPOSE_UPDATE_COMMAND="docker-compose down; docker-compose pull; docker-compose up -d;" [[ -z ${DOCKER_COMPOSE_UPDATE_FAIL_ON_UPDATE_ERROR} ]] && DOCKER_COMPOSE_UPDATE_FAIL_ON_UPDATE_ERROR="false"; } check_required() {