Update file run_onchange_after_07-docker-plugins.tmpl

This commit is contained in:
Brian Zalewski 2023-01-24 11:56:07 +00:00
parent 20b5a49e18
commit d0e0438a5a

View file

@ -16,8 +16,8 @@ fi
### Docker Convoy ### Docker Convoy
if [ ! -f /etc/docker/plugins/convoy.spec ]; then if [ ! -f /etc/docker/plugins/convoy.spec ]; then
logg info 'Adding the Docker Convoy plugin' logg info 'Adding the Docker Convoy plugin'
sudo mkdir -p /etc/docker/plugins/ sudo mkdir -p /etc/docker/plugins
sudo bash -c 'echo "unix:///var/run/convoy/convoy.sock" > /etc/docker/plugins/convoy.spec sudo bash -c 'echo "unix:///var/run/convoy/convoy.sock" > /etc/docker/plugins/convoy.spec'
cd "$HOME/.local/src" cd "$HOME/.local/src"
tar xvzf convoy.tar.gz tar xvzf convoy.tar.gz
sudo cp convoy/convoy convoy/convoy-pdata_tools /usr/local/bin/ sudo cp convoy/convoy convoy/convoy-pdata_tools /usr/local/bin/
@ -27,7 +27,7 @@ else
fi fi
### Docker push-rm ### Docker push-rm
if [ ! -f "${XDG_CONFIG_HOME:-$HOME/.docker}/cli-plugins/docker-pushrm ]; then if [ ! -f "${XDG_CONFIG_HOME:-$HOME/.docker}/cli-plugins/docker-pushrm" ]; then
logg info 'Acquiring release information for Docker push-rm' logg info 'Acquiring release information for Docker push-rm'
RELEASE_TAG="$(curl -sSL https://api.github.com/repos/christian-korneck/docker-pushrm/releases/latest | jq -r '.tag_name')" RELEASE_TAG="$(curl -sSL https://api.github.com/repos/christian-korneck/docker-pushrm/releases/latest | jq -r '.tag_name')"
mkdir -p "${XDG_CONFIG_HOME:-$HOME/.docker}/cli-plugins" mkdir -p "${XDG_CONFIG_HOME:-$HOME/.docker}/cli-plugins"