Merge branch 'angristan' of https://github.com/psgoundar/openvpn-install into angristan
This commit is contained in:
commit
d481be7ee9
1 changed files with 28 additions and 0 deletions
|
|
@ -1260,10 +1260,14 @@ function removeOpenVPN () {
|
||||||
function listcerts () {
|
function listcerts () {
|
||||||
# Original Script from PiVPN: list clients script
|
# Original Script from PiVPN: list clients script
|
||||||
<<<<<<< HEAD
|
<<<<<<< HEAD
|
||||||
|
<<<<<<< HEAD
|
||||||
# Modified Script to add Certificate expiration Date -- Swamy Goundar 03/28/2020
|
# Modified Script to add Certificate expiration Date -- Swamy Goundar 03/28/2020
|
||||||
=======
|
=======
|
||||||
# Modified Script to add Certificate expiration Date -- psgoundar
|
# Modified Script to add Certificate expiration Date -- psgoundar
|
||||||
>>>>>>> 4dce304... Added List function to Show Issued Certificates
|
>>>>>>> 4dce304... Added List function to Show Issued Certificates
|
||||||
|
=======
|
||||||
|
# Modified Script to add Certificate expiration Date -- psgoundar
|
||||||
|
>>>>>>> dbae6a17c143f6fcc7c3f1bbfb82f42d41260984
|
||||||
|
|
||||||
INDEX="/etc/openvpn/easy-rsa/pki/index.txt"
|
INDEX="/etc/openvpn/easy-rsa/pki/index.txt"
|
||||||
printf "\\n"
|
printf "\\n"
|
||||||
|
|
@ -1272,6 +1276,7 @@ if [ ! -f "${INDEX}" ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
<<<<<<< HEAD
|
||||||
<<<<<<< HEAD
|
<<<<<<< HEAD
|
||||||
#printf ": NOTE : The first entry should always be your valid server!\n"
|
#printf ": NOTE : The first entry should always be your valid server!\n"
|
||||||
#printf "\n"
|
#printf "\n"
|
||||||
|
|
@ -1289,6 +1294,10 @@ printf "\e[4mStatus\e[0m :: \e[4mName\e[0m\e[0m :: \e[4mExpiration \e[0
|
||||||
printf "\\e[1m::: Certificate Status List :::\\e[0m\\n"
|
printf "\\e[1m::: Certificate Status List :::\\e[0m\\n"
|
||||||
printf "\\e[4mStatus\\e[0m :: \\e[4mName\\e[0m\\e[0m :: \\e[4mExpiration \\e[0m\\n"
|
printf "\\e[4mStatus\\e[0m :: \\e[4mName\\e[0m\\e[0m :: \\e[4mExpiration \\e[0m\\n"
|
||||||
>>>>>>> 163f729... Updated Syntax Formating
|
>>>>>>> 163f729... Updated Syntax Formating
|
||||||
|
=======
|
||||||
|
printf "\\e[1m::: Certificate Status List :::\\e[0m\\n"
|
||||||
|
printf "\\e[4mStatus\\e[0m :: \\e[4mName\\e[0m\\e[0m :: \\e[4mExpiration \\e[0m\\n"
|
||||||
|
>>>>>>> dbae6a17c143f6fcc7c3f1bbfb82f42d41260984
|
||||||
|
|
||||||
while read -r line || [ -n "$line" ]; do
|
while read -r line || [ -n "$line" ]; do
|
||||||
STATUS=$(echo "$line" | awk '{print $1}')
|
STATUS=$(echo "$line" | awk '{print $1}')
|
||||||
|
|
@ -1298,6 +1307,7 @@ while read -r line || [ -n "$line" ]; do
|
||||||
if [ "${STATUS}" == "V" ]; then
|
if [ "${STATUS}" == "V" ]; then
|
||||||
<<<<<<< HEAD
|
<<<<<<< HEAD
|
||||||
<<<<<<< HEAD
|
<<<<<<< HEAD
|
||||||
|
<<<<<<< HEAD
|
||||||
<<<<<<< HEAD
|
<<<<<<< HEAD
|
||||||
printf "Valid \t %s \t %s\\n" "$NAME" "$EXPD"
|
printf "Valid \t %s \t %s\\n" "$NAME" "$EXPD"
|
||||||
elif [ "${STATUS}" == "R" ]; then
|
elif [ "${STATUS}" == "R" ]; then
|
||||||
|
|
@ -1455,6 +1465,9 @@ Last_Backup_Ovpn_Archive_File=$(ls -t $Backup_Location/ovpn* | head -n 1)
|
||||||
=======
|
=======
|
||||||
printf " Valid :: %s :: %s\\n" "$NAME" "$EXPD"
|
printf " Valid :: %s :: %s\\n" "$NAME" "$EXPD"
|
||||||
>>>>>>> dd5f3e1... Cleaned up Formating
|
>>>>>>> dd5f3e1... Cleaned up Formating
|
||||||
|
=======
|
||||||
|
printf " Valid :: %s :: %s\\n" "$NAME" "$EXPD"
|
||||||
|
>>>>>>> dbae6a17c143f6fcc7c3f1bbfb82f42d41260984
|
||||||
elif [ "${STATUS}" == "R" ]; then
|
elif [ "${STATUS}" == "R" ]; then
|
||||||
#printf " Revoked :: %s :: %s\\n" "$NAME" "$EXPD"
|
#printf " Revoked :: %s :: %s\\n" "$NAME" "$EXPD"
|
||||||
continue
|
continue
|
||||||
|
|
@ -1464,11 +1477,15 @@ Last_Backup_Ovpn_Archive_File=$(ls -t $Backup_Location/ovpn* | head -n 1)
|
||||||
|
|
||||||
done <${INDEX} | column -t
|
done <${INDEX} | column -t
|
||||||
<<<<<<< HEAD
|
<<<<<<< HEAD
|
||||||
|
<<<<<<< HEAD
|
||||||
printf "\n"
|
printf "\n"
|
||||||
>>>>>>> 4dce304... Added List function to Show Issued Certificates
|
>>>>>>> 4dce304... Added List function to Show Issued Certificates
|
||||||
=======
|
=======
|
||||||
printf "\\n"
|
printf "\\n"
|
||||||
>>>>>>> 163f729... Updated Syntax Formating
|
>>>>>>> 163f729... Updated Syntax Formating
|
||||||
|
=======
|
||||||
|
printf "\\n"
|
||||||
|
>>>>>>> dbae6a17c143f6fcc7c3f1bbfb82f42d41260984
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1483,6 +1500,7 @@ function manageMenu () {
|
||||||
echo " 1) Add a new user"
|
echo " 1) Add a new user"
|
||||||
echo " 2) Revoke existing user"
|
echo " 2) Revoke existing user"
|
||||||
echo " 3) List Current Issued Certificates"
|
echo " 3) List Current Issued Certificates"
|
||||||
|
<<<<<<< HEAD
|
||||||
<<<<<<< HEAD
|
<<<<<<< HEAD
|
||||||
echo " 4) List Current Active Users"
|
echo " 4) List Current Active Users"
|
||||||
echo " 5) Backup Configuration"
|
echo " 5) Backup Configuration"
|
||||||
|
|
@ -1490,6 +1508,8 @@ function manageMenu () {
|
||||||
echo " 7) Sync Configuration to Alternate Servers *Incomplete"
|
echo " 7) Sync Configuration to Alternate Servers *Incomplete"
|
||||||
=======
|
=======
|
||||||
>>>>>>> 4dce304... Added List function to Show Issued Certificates
|
>>>>>>> 4dce304... Added List function to Show Issued Certificates
|
||||||
|
=======
|
||||||
|
>>>>>>> dbae6a17c143f6fcc7c3f1bbfb82f42d41260984
|
||||||
echo " 8) Remove OpenVPN"
|
echo " 8) Remove OpenVPN"
|
||||||
echo " 9) Exit"
|
echo " 9) Exit"
|
||||||
until [[ "$MENU_OPTION" =~ ^[1-9]$ ]]; do
|
until [[ "$MENU_OPTION" =~ ^[1-9]$ ]]; do
|
||||||
|
|
@ -1505,6 +1525,7 @@ function manageMenu () {
|
||||||
;;
|
;;
|
||||||
3)
|
3)
|
||||||
listcerts
|
listcerts
|
||||||
|
<<<<<<< HEAD
|
||||||
<<<<<<< HEAD
|
<<<<<<< HEAD
|
||||||
;;
|
;;
|
||||||
4)
|
4)
|
||||||
|
|
@ -1525,6 +1546,13 @@ function manageMenu () {
|
||||||
removeOpenVPN
|
removeOpenVPN
|
||||||
;;
|
;;
|
||||||
>>>>>>> 4dce304... Added List function to Show Issued Certificates
|
>>>>>>> 4dce304... Added List function to Show Issued Certificates
|
||||||
|
=======
|
||||||
|
;;
|
||||||
|
|
||||||
|
8)
|
||||||
|
removeOpenVPN
|
||||||
|
;;
|
||||||
|
>>>>>>> dbae6a17c143f6fcc7c3f1bbfb82f42d41260984
|
||||||
9)
|
9)
|
||||||
exit 0
|
exit 0
|
||||||
;;
|
;;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue