Bash Script Help
I want to automate the creation of new OpenVPN keys and I have a script for doing that. However, when I get to the point in the script where I call the "./build-key someuser" part to create the user's keys, I have to walk through answering all the questions (with a default return key) and then at the end having to hit the 'y' key followed by return twice. Is there anyway to bypass this step and just have it create the keys?
I've tried the following (and multiple variations on this) with no success:
echo -e "\n\n\n\n\n\n\n\n\ny\ny\n" | ./build-key someuser
Sarcasm: Just one more service I offer