angristan / openvpn-install

Set up your own OpenVPN server on Debian, Ubuntu, Fedora, CentOS or Arch Linux.

Home Page:https://stanislas.blog

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Non interactive mode

pingmyheart opened this issue · comments

Implement the possibility to run the script in non-interactive mode using arguments instead of environment variables

# Create new client with default no pass with name CLIENT_NAME
./openvpn-install.sh --non-interactive --create "CLIENT_NAME"

# Revoke existing client by its name
./openvpn-install.sh --non-interactive --revoke "CLIENT_NAME"