Created
September 29, 2017 01:02
-
-
Save dannygsmith/f32b9d432d1443fad1dc94dfd656de69 to your computer and use it in GitHub Desktop.
Secureing all hosts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
#styles | |
VP_NONE='\033[00m' | |
VP_RED='\033[01;31m' | |
VP_GREEN='\033[01;32m' | |
VP_YELLOW='\033[01;33m' | |
VP_PURPLE='\033[01;35m' | |
VP_CYAN='\033[01;36m' | |
VP_WHITE='\033[01;37m' | |
VP_BOLD='\033[1m' | |
VP_UNDERLINE='\033[4m' | |
readarray arr < ${HOME}/bin/hosts.txt | |
## now loop through the above array | |
for k in "${arr[@]}" | |
do | |
echo " " | |
echo " " | |
echo -e "${VP_GREEN}Securing $k${VP_NONE}" | |
valet secure $k | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment