Bug 718 - Unbound-Control-Setup: support for env without HEREDOC bash support
Unbound-Control-Setup: support for env without HEREDOC bash support
Status: RESOLVED FIXED
Product: unbound
Classification: Unclassified
Component: server
unspecified
All All
: P5 enhancement
Assigned To: unbound team
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2015-10-31 22:02 CET by Marek Sebera
Modified: 2015-11-03 09:18 CET (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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