Remove second check condition for resolvers.conf (#87)

pull/89/head
Alex Thomae 2021-04-20 21:29:28 +02:00 committed by GitHub
parent ce3c77b62a
commit 2f55921a0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ done
echo "Final chosen resolver: $conf" echo "Final chosen resolver: $conf"
confpath=/etc/nginx/resolvers.conf confpath=/etc/nginx/resolvers.conf
if [ ! -e $confpath ] || [ "$conf" != "$(cat $confpath)" ] if [ ! -e $confpath ]
then then
echo "Using auto-determined resolver '$conf' via '$confpath'" echo "Using auto-determined resolver '$conf' via '$confpath'"
echo "$conf" > $confpath echo "$conf" > $confpath