#!/bin/bash #author: Thomas Roehm #version: 1.3 echo "" echo "You can get release info on \"https://github.com/NetApp/trident/releases\"" echo "" VERSION="20.04.0" HOME="/home/kubernetes/" FILE="${HOME}trident-installer-${VERSION}.tar.gz" if [ -e $FILE ] then echo "${FILE} exists, please check if trident is already up to date. Wrong version referenced in script!?" exit 1 else echo "" echo "patching trident..." echo "" sleep 3 su - kubernetes -c "cat <