On Wed, Feb 28, 2024 at 12:52:17PM +0000, Peter Davis via Openvpn-users wrote:
> # #!/bin/bash
> # export script_type="client-connect"
> # export common_name="CommonName"
> # export trusted_ip="192.168.129.253"
> # ./server-events.sh

I did not follow the whole discussion, but why on earth are you assuming that
your current directly is somewhere known?  This is what ./ means:
run server-events.sh in the current directory.

Put your script in /usr/local/OPENVPN/scripts and call it as
/usr/local/OPENVPN/scripts/server-events.sh for example.

> So, why is the script not working in OpenVPN?

If the problem is locating ./server-events.sh it is *possible* that OpenVPN log
itself (or syslog, or the systemd journal) has some stderr output.

There are other possibly problems, such as access rights (depending on what
user the script is run on, possibly root).


_______________________________________________
Openvpn-users mailing list
Openvpn-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-users

Reply via email to