mirror of
https://github.com/pivpn/pivpn.git
synced 2024-12-25 06:10:16 +00:00
Unique identification of client names bei pivp -on/-off
This commit is contained in:
parent
4032a55c80
commit
ddedf56505
1 changed files with 2 additions and 2 deletions
|
@ -110,8 +110,8 @@ for CLIENT_NAME in "${CLIENTS_TO_CHANGE[@]}"; do
|
||||||
# Disable the peer section from the server config
|
# Disable the peer section from the server config
|
||||||
echo "${CLIENT_NAME}"
|
echo "${CLIENT_NAME}"
|
||||||
|
|
||||||
sed_pattern="/### begin ${CLIENT_NAME}/,"
|
sed_pattern="/### begin ${CLIENT_NAME} ###/,"
|
||||||
sed_pattern="${sed_pattern}/end ${CLIENT_NAME}/ s/^/#\[disabled\] /"
|
sed_pattern="${sed_pattern}/end ${CLIENT_NAME} ###/ s/^/#\[disabled\] /"
|
||||||
sed -e "${sed_pattern}" -i wg0.conf
|
sed -e "${sed_pattern}" -i wg0.conf
|
||||||
unset sed_pattern
|
unset sed_pattern
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue