Hide the server profile on index page

This commit is contained in:
root 2020-02-24 22:25:20 +00:00
parent 90a6fed192
commit 934bd02df9
1 changed files with 2 additions and 2 deletions

View File

@ -89,7 +89,7 @@ NUMBEROFCLIENTS=$(tail -n +2 /etc/openvpn/easy-rsa/pki/index.txt | grep -c "^V")
if [[ "$NUMBEROFCLIENTS" = '0' ]]; then
echo " You don't have any existing clients."
else
while read c; do
sed 1d /etc/openvpn/easy-rsa/pki/index.txt | while read c; do
if [[ $(echo $c | grep -c "^V") = '1' ]]; then
clientName=$(echo $c | cut -d '=' -f 2)
echo " <a href='index.sh?option=revoke&client=$clientName'><button class='btn'>Revoke</button></a> "
@ -97,7 +97,7 @@ else
echo " <a href='index.sh?option=access&client=$clientName'><button class='btn primary'>(Un)Limit</button></a>"
echo " &nbsp;$clientName<br>"
fi
done </etc/openvpn/easy-rsa/pki/index.txt
done #</etc/openvpn/easy-rsa/pki/index.txt
fi
echo "