diff --git a/.scripts/enable_docker_service.sh b/.scripts/enable_docker_service.sh index 6c483ef70f..292aa1b745 100644 --- a/.scripts/enable_docker_service.sh +++ b/.scripts/enable_docker_service.sh @@ -16,9 +16,9 @@ enable_docker_service() { fi if [[ -n "${DOCKER_SERVICE_ENABLE}" ]]; then info "Enabling docker service." - sudo "${DOCKER_SERVICE_ENABLE}" > /dev/null 2>&1 || fatal "Failed to enable docker service.\nFailing command: ${F[C]}${DOCKER_SERVICE_ENABLE}" + eval "sudo ${DOCKER_SERVICE_ENABLE}" > /dev/null 2>&1 || fatal "Failed to enable docker service.\nFailing command: ${F[C]}${DOCKER_SERVICE_ENABLE}" info "Starting docker service." - sudo "${DOCKER_SERVICE_START}" > /dev/null 2>&1 || fatal "Failed to start docker service.\nFailing command: ${F[C]}${DOCKER_SERVICE_START}" + eval "sudo ${DOCKER_SERVICE_START}" > /dev/null 2>&1 || fatal "Failed to start docker service.\nFailing command: ${F[C]}${DOCKER_SERVICE_START}" fi }