Fix missing condition.

This commit is contained in:
Markus Reiter 2022-02-15 06:59:01 +01:00 committed by GitHub
parent b893e48dbd
commit 824f129124
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -50,14 +50,16 @@ while read entry; do
destfilename=$(echo $filename | sed -e 's/txt/conf/')
outputfile=${outputdir}/${destfilename}
touch $outputfile
echo 'forward-zone:' > $outputfile
echo " name: \"${key}.cache.lancache.net.\"" >> $outputfile
for i in ${cacheip}; do
echo " forward-addr: \"${i}\"" >> $outputfile
done
echo " forward-first: yes" >> $outputfile
echo " forward-no-cache: yes" >> $outputfile
if $forward; then
echo 'forward-zone:' > $outputfile
echo " name: \"${key}.cache.lancache.net.\"" >> $outputfile
for i in ${cacheip}; do
echo " forward-addr: \"${i}\"" >> $outputfile
done
echo " forward-first: yes" >> $outputfile
echo " forward-no-cache: yes" >> $outputfile
fi
while read fileentry; do
# Ignore comments and newlines