diff --git a/scripts/openvpn/makeOVPN.sh b/scripts/openvpn/makeOVPN.sh index 3c61a4e..5300a2b 100755 --- a/scripts/openvpn/makeOVPN.sh +++ b/scripts/openvpn/makeOVPN.sh @@ -20,7 +20,7 @@ source "${setupVars}" helpFunc() { echo "::: Create a client ovpn profile, optional nopass" echo ":::" - echo "::: Usage: pivpn <-a|add> [-n|--name ] [-p|--password ]|[nopass] [-d|--days ] [-b|--bitwarden] [-i|--iOS] [-c|--config-file] [-h|--help]" + echo "::: Usage: pivpn <-a|add> [-n|--name ] [-p|--password ]|[nopass] [-d|--days ] [-b|--bitwarden] [-i|--iOS] [-o|--ovpn] [-h|--help]" echo ":::" echo "::: Commands:" echo "::: [none] Interactive mode" @@ -30,7 +30,7 @@ helpFunc() { echo "::: -d,--days Expire the certificate after specified number of days (default: 1080)" echo "::: -b,--bitwarden Create and save a client through Bitwarden" echo "::: -i,--iOS Generate a certificate that leverages iOS keychain" - echo "::: -c,--config-file Generate .ovpn configuration file for an existing client" + echo "::: -o,--ovpn Regenerate a .ovpn config file for an existing client" echo "::: -h,--help Show this help dialog" } @@ -100,7 +100,7 @@ do fi ;; - -c|--config-file) + -o|--ovpn) GENOVPNONLY=1 ;; *) diff --git a/scripts/openvpn/pivpn.sh b/scripts/openvpn/pivpn.sh index 81d75b9..0b7feb7 100755 --- a/scripts/openvpn/pivpn.sh +++ b/scripts/openvpn/pivpn.sh @@ -73,7 +73,6 @@ function helpFunc { echo "::: -c, clients List any connected clients to the server" echo "::: -d, debug Start a debugging session if having trouble" echo "::: -l, list List all valid and revoked certificates" - echo "::: -o, ovpn Generate a .ovpn config file for an existing client" echo "::: -r, revoke Revoke a client ovpn profile" echo "::: -h, help Show this help dialog" echo "::: -u, uninstall Uninstall PiVPN from your system!" @@ -92,7 +91,6 @@ case "$1" in "-c" | "clients" ) listClientsFunc "$@";; "-d" | "debug" ) debugFunc;; "-l" | "list" ) listOVPNFunc;; -"-o" | "ovpn" ) makeOVPNFunc "$@" -c;; "-r" | "revoke" ) removeOVPNFunc "$@";; "-h" | "help" ) helpFunc;; "-u" | "uninstall" ) uninstallFunc;;