-
On ubuntu 20.04 LTS, I'm trying to get headless user addition working with the following: export MENU_OPTION="1"
export CLIENT=$1
export PASS=$(tr -dc A-Za-z0-9 </dev/urandom | head -c 13; echo '')
./openvpn-install.sh But I continue to get the menu. I've tried setting Edit upon further inspection, none of the env vars are being respected. |
Beta Was this translation helpful? Give feedback.
Answered by
brennongs
Aug 10, 2021
Replies: 1 comment
-
It was because when you pass sudo in you start a new session which blows away all your env vars. This worked when I used |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
brennongs
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It was because when you pass sudo in you start a new session which blows away all your env vars. This worked when I used
sudo
to invoke it. :|