From 69472df97770865e2aaf54fb4dfc97de1a9db697 Mon Sep 17 00:00:00 2001 From: sthope Date: Sun, 14 Aug 2022 11:05:03 +0200 Subject: [PATCH] update --- .../portainer-agent/install-portainer-agent | 72 +++++++++++++++++++ .../portainer/portainer-agent/test123.log | 2 + 2 files changed, 74 insertions(+) create mode 100644 docker_portainer_stacks/portainer/portainer-agent/install-portainer-agent create mode 100644 docker_portainer_stacks/portainer/portainer-agent/test123.log diff --git a/docker_portainer_stacks/portainer/portainer-agent/install-portainer-agent b/docker_portainer_stacks/portainer/portainer-agent/install-portainer-agent new file mode 100644 index 0000000..c22ef9a --- /dev/null +++ b/docker_portainer_stacks/portainer/portainer-agent/install-portainer-agent @@ -0,0 +1,72 @@ +#!/bin/bash +# ___ _ _ _ __ +# / __|| |_ | |_ ___ | '_ \ ___ +# \__ \| _|| \ / _ \| .__// -_) +# |___/ \__||_||_|\___/|_| \___| + + +#### USAGE +# bash -c "$(wget -qLO - https://git.sthope.dev/sthope/sthope-examples/src/branch/master/docker_portainer_stacks/raw/branch/master/portainer/install-portainer-agent)" EDGE_ID EDGE_KEY + +EDGE_ID=1 +EDGE_KEY=2 +NETWORK=3 +TAG=4 +DOCKER_FILE="./test123.log" +SAVE_IN='echo -e ' +SAVE_OUT='' + + +# cat > ./test_file.log <> ${DOCKER_FILE} <