> On Wednesday, February 21st, 2024 at 5:18 PM, Bo Berglund > <bo.bergl...@gmail.com> wrote:
> On Wed, 21 Feb 2024 11:04:48 +0000, Peter Davis via Openvpn-users > openvpn-users@lists.sourceforge.net wrote: > > > Hello, > > I use Debian. I used "bash" instead of "sh": > > > > # bash script-events.sh > > script-events.sh: line 6: [: ==: unary operator expected > > > > I changed "[" to "[[": > > > > # bash script-events.sh > > # > > > > Seems OK? > > > You also need to change "]" to "]]"... > > https://www.baeldung.com/linux/bash-single-vs-double-brackets > > > -- > Bo Berglund > Developer in Sweden > > > > _______________________________________________ > Openvpn-users mailing list > Openvpn-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/openvpn-users Hello, Sure, I changed it too. I added the script in the "client-connect" section, then I created a file called "Connections.log" under the "/var/log/openvpn/" directory and changed the "LOG_FILE" address as follows: LOG_FILE="/var/log/openvpn/Connections.log" I restarted the OpenVPN service and connected to the OpenVPN server with a client. I checked the file, but it was empty and nothing was registered. What is wrong? _______________________________________________ Openvpn-users mailing list Openvpn-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openvpn-users