Skip to content

Commit 1a180a6

Browse files
Update hst_autocompile.sh
1 parent 2b56ebf commit 1a180a6

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/hst_autocompile.sh

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -288,17 +288,6 @@ if [ "$NGINX_B" = true ] ; then
288288
cp $BUILD_DIR/hestiacp-$branch/src/deb/nginx/nginx.conf "usr/local/hestia/nginx/conf/nginx.conf"
289289
fi
290290

291-
# Update dns servers in nginx.conf
292-
dns_resolver=$(cat /etc/resolv.conf | grep -i '^nameserver' | cut -d ' ' -f2 | tr '\r\n' ' ' | xargs)
293-
for ip in $dns_resolver; do
294-
if [[ $ip =~ ^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
295-
resolver="$ip $resolver"
296-
fi
297-
done
298-
if [ ! -z "$resolver" ]; then
299-
sed -i "s/1.0.0.1 1.1.1.1/$resolver/g" /usr/local/hestia/nginx/conf/nginx.conf
300-
fi
301-
302291
# copy binary
303292
cp usr/local/hestia/nginx/sbin/nginx usr/local/hestia/nginx/sbin/hestia-nginx
304293

0 commit comments

Comments
 (0)