unset existing variables on script start
This commit is contained in:
parent
f5412da2fa
commit
70baf37abc
12
setup.sh
12
setup.sh
@ -6,7 +6,7 @@
|
|||||||
#######
|
#######
|
||||||
|
|
||||||
|
|
||||||
# text formatting ansi codes
|
### text formatting ansi codes
|
||||||
err="\e[1;31m"
|
err="\e[1;31m"
|
||||||
ok="\e[1;32m"
|
ok="\e[1;32m"
|
||||||
warn="\e[93m"
|
warn="\e[93m"
|
||||||
@ -15,13 +15,19 @@ cyan="\e[96m"
|
|||||||
norm="\e[0m"
|
norm="\e[0m"
|
||||||
|
|
||||||
|
|
||||||
# set variables
|
### set variables
|
||||||
|
|
||||||
|
unset IP4
|
||||||
|
unset useCertbot
|
||||||
|
unset CertbotDomain
|
||||||
|
unset CertPath
|
||||||
|
|
||||||
detectedIP=$(ip route get 1 | sed -n 's/^.*src \([0-9.]*\) .*$/\1/p')
|
detectedIP=$(ip route get 1 | sed -n 's/^.*src \([0-9.]*\) .*$/\1/p')
|
||||||
regexIP4="(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])"
|
regexIP4="(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])"
|
||||||
regexHostname="(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9])\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\-]*[A-Za-z0-9])"
|
regexHostname="(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9])\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\-]*[A-Za-z0-9])"
|
||||||
|
|
||||||
|
|
||||||
# quick intro for the user
|
### quick intro for the user
|
||||||
echo -e "\n${mag}This script will customize the provided NGINX template files for your"
|
echo -e "\n${mag}This script will customize the provided NGINX template files for your"
|
||||||
echo "environment. You will be prompted for all necessary information. After that,"
|
echo "environment. You will be prompted for all necessary information. After that,"
|
||||||
echo "default error pages will be copied to your webroot and your NGINX configuration"
|
echo "default error pages will be copied to your webroot and your NGINX configuration"
|
||||||
|
Loading…
Reference in New Issue
Block a user