I need to create a script to automatically install the OpenVPN server. In this script, I need to specify the vars file in the file / etc / openvpn / easy -rsa /
But when I execute the following script in the directory / etc / openvpn / easy-rsa / (with chmod 775 in the script and vars file), it says "xxxx.sh: 3: xxxx. Sh: source: not found:"
#!/bin/bash source ./vars
When I write .. / vars, it works, but if I want to do it. / clean -all, it says:
Please enter a vars script first (ie. "Source. / Vars") Make sure you edit it to reflect your configuration.
When i do. / clean -all in the same script as .. / vars, it works.
Thanks for your help (and sorry for my bad english: /)
source share