Hey I have the following problem:
FILE=/etc/squid3/conf.d/$CUSTOMER.conf
Everytime i'm doing that:
grep -o $replaced_ip $FILE
grep: /etc/squid3/conf.d/.conf: Data not found
I've startet the script together with the $CUSTOMER
variable, so it is not empty.
Guess I'm having a syntax error?
Thanks for any advice.
while getopts :c:s:d:hI:p:r:l:fa: FLAG; do
case $FLAG in
s)
SOURCE=$OPTARG
;;
d)
DESTINATION=$OPTARG
;;
I)
ISSUE=$OPTARG
;;
c)
CUSTOMER=$OPTARG
test -e /etc/squid3/conf.d/$CUSTOMER.conf
customer_available=$?
;;