Hide the server profile on index page
This commit is contained in:
parent
90a6fed192
commit
934bd02df9
4
index.sh
4
index.sh
@ -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 " $clientName<br>"
|
||||
fi
|
||||
done </etc/openvpn/easy-rsa/pki/index.txt
|
||||
done #</etc/openvpn/easy-rsa/pki/index.txt
|
||||
fi
|
||||
|
||||
echo "
|
||||
|
Loading…
x
Reference in New Issue
Block a user