shakedown icon indicating copy to clipboard operation
shakedown copied to clipboard

no issue, just thank you

Open bdmorin opened this issue 2 years ago • 0 comments

I've been using this app for ~4 years now and it still stuns me the simplicity, yet power I get out of of it. Thank you.

This is one of my crazy shakedowns (scrubbed)

#!/usr/bin/env bash
source shakedown.lib.20220531.bash

declare -A DIRECTIP
DIRECTIP['staging1.domain.io']='172.24.32.12'
DIRECTIP['staging2.domain.io']='172.24.32.9'
DIRECTIP['prodapp7.domain.io']='10.246.165.101'
DIRECTIP['prodapp8.domain.io']='10.246.165.20'

DIRECTIP['development.domain.io']='172.24.32.8'
DIRECTIP['integ.domain.io']='172.24.32.21'
DIRECTIP['integration.domain.io']='172.24.32.16'
DIRECTIP['testing1.domain.io']='172.24.32.18'
DIRECTIP['testing2.domain.io']='172.24.32.20'
DIRECTIP['testing3.domain.io']='172.24.32.19'
DIRECTIP['testing4.domain.io']='172.24.32.23'
DIRECTIP['testing5.domain.io']='10.246.165.62'
DIRECTIP['training.domain3.com']='172.24.32.13'

TESTURL=( "domain.com" "www.domain.com" )

# Color variables
red='\033[0;31m'
green='\033[0;32m'
yellow='\033[0;33m'
blue='\033[0;34m'
magenta='\033[0;35m'
cyan='\033[0;36m'
# Clear the color after that
clear='\033[0m'

# Color variables
bg_red='\033[0;41m'
bg_green='\033[0;42m'
bg_yellow='\033[0;43m'
bg_blue='\033[0;44m'
bg_magenta='\033[0;45m'
bg_cyan='\033[0;46m'


# Loop each url on each host

for IP in "${!DIRECTIP[@]}"; do
  #echo $IP
  #echo ${DIRECTIP[$IP]}
  for URL in ${TESTURL[@]}; do
printf "\n\n${red}Testing${clear}: ${magenta}%s${clear}" "${IP}"
shakedown GET https://${URL} --resolve ${URL}:443:${DIRECTIP[$IP]} -k
  status 301
  header 'Location: https://www.domain2.com/gl/click.do?keycode=418259'
  done


done

bdmorin avatar May 31 '22 22:05 bdmorin