Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Config
Commits
fad1fc34
Unverified
Commit
fad1fc34
authored
Feb 20, 2018
by
Thomas Kaiser
Committed by
GitHub
Feb 20, 2018
Browse files
Allow execution on crippled Debian variants
Package resolvconf is not available everywhere
parent
77b8e9f4
Changes
1
Hide whitespace changes
Inline
Side-by-side
softy
View file @
fad1fc34
...
@@ -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)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment