Bug 718

Summary: Unbound-Control-Setup: support for env without HEREDOC bash support
Product: unbound Reporter: Marek Sebera <marek.sebera>
Component: serverAssignee: unbound team <unbound-team>
Status: RESOLVED FIXED    
Severity: enhancement CC: cathya, wouter
Priority: P5    
Version: unspecified   
Hardware: All   
OS: All   

Description Marek Sebera 2015-10-31 22:02:27 CET
While creating Unbound DNS port for Android I've struggled on `unbound-control-setup` not being able to generate certificates, because openssl request is generated through HEREDOC syntax, which is not supported on Android sh/bash by default

I've created version of this script replacing HEREDOC with multiple echo commands, see here: https://github.com/smarek/android-unbound-dns/blob/master/unbound-control-setup

Would it be possible for you to provide this support (remove HEREDOC) by default?
Comment 1 Wouter Wijngaards 2015-11-03 09:14:10 CET
Hi Marek,

Thank you for the patch.  The HEREDOC fixes have been applied.  The other changes are not appropriate for everyone (like /system/bin/sh, and fixing a directory of '.').

Best regards, Wouter
Comment 2 Marek Sebera 2015-11-03 09:18:31 CET
Hi Wouter,

thank you, that's great :-)

Of course rest of changes are not suitable for rest of Unbound users, but this makes it far more easy to not care about future revisions of this setup script.

Best Regards
Marek Sebera