diff --git a/openvpn-install.sh b/openvpn-install.sh index efb1c60..884aa55 100644 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -112,10 +112,28 @@ new_client() { chmod 600 "$export_dir$client".ovpn } +show_header() { +cat <<'EOF' + +OpenVPN Script 3 Oct 2022 +https://github.com/hwdsl2/openvpn-install +EOF +} + +show_header2() { +cat <<'EOF' + +Copyright (c) 2022 Lin Song +Copyright (c) 2013-2022 Nyr +EOF +} + show_usage() { if [ -n "$1" ]; then echo "Error: $1" >&2 fi + show_header + show_header2 cat 1>&2 < /etc/openvpn/server/client-common.txt echo "The client configuration is available in: $export_dir$client.ovpn" echo "New clients can be added by running this script again." else + show_header echo echo "OpenVPN is already installed." echo