Unverified Commit fad1fc34 authored by Thomas Kaiser's avatar Thomas Kaiser Committed by GitHub
Browse files

Allow execution on crippled Debian variants

Package resolvconf is not available everywhere
parent 77b8e9f4
...@@ -1084,8 +1084,10 @@ if [[ $EUID != 0 ]]; then ...@@ -1084,8 +1084,10 @@ if [[ $EUID != 0 ]]; then
fi fi
# nameserver backup # nameserver backup
echo 'nameserver 8.8.8.8' > /etc/resolvconf/resolv.conf.d/head if [ -d /etc/resolvconf/resolv.conf.d ]; then
resolvconf -u echo 'nameserver 8.8.8.8' > /etc/resolvconf/resolv.conf.d/head
resolvconf -u
fi
# Create a safe temporary directory # Create a safe temporary directory
TEMP_DIR=$(mktemp -d || exit 1) TEMP_DIR=$(mktemp -d || exit 1)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment