Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
alpine-conf
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
18
Issues
18
List
Boards
Labels
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alpine
alpine-conf
Commits
9c636b52
Commit
9c636b52
authored
Nov 03, 2016
by
Jakub Jirutka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setup-dns: fix error when resolv.conf doesn't exist and no -d given
parent
281cbbd6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
setup-dns.in
setup-dns.in
+1
-1
No files found.
setup-dns.in
View file @
9c636b52
...
...
@@ -58,7 +58,7 @@ if [ "$domain" != "" ]; then
echo
"search
$domain
"
>
$conf
fi
if
[
-n
"
$dns
"
]
||
[
$#
-gt
0
]
;
then
if
[
-n
"
$dns
"
]
||
[
$#
-gt
0
]
&&
[
-f
"
$conf
"
]
;
then
sed
-i
-e
'/^nameserver/d'
$conf
fi
for
i
in
$dns
$@
;
do
...
...
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