25 lines
392 B
Text
25 lines
392 B
Text
|
|
#!/bin/bash
|
||
|
|
|
||
|
|
unset VPN;
|
||
|
|
VPN=(
|
||
|
|
'Real;~/Nextcloud2/guydev/network/wireguard/real/users/002-Guy.conf'
|
||
|
|
'Ingt;~/Nextcloud2/guydev/network/wireguard/ingtegration/chateauguay/user/U-003-dana.conf'
|
||
|
|
)
|
||
|
|
|
||
|
|
unset Items;
|
||
|
|
|
||
|
|
for Item in "${VPN[@]}"
|
||
|
|
do
|
||
|
|
echo -e "Item is: $Item"
|
||
|
|
IFS=";" read -r Name Def <<< $Item
|
||
|
|
echo -e "
|
||
|
|
Name : $Name
|
||
|
|
Def : $Def
|
||
|
|
"
|
||
|
|
Items+="$Name\n"
|
||
|
|
done
|
||
|
|
|
||
|
|
|
||
|
|
echo -e "${Items[@]}"
|
||
|
|
|