Project

General

Profile

« Previous | Next » 

Revision 175f3ac6

Added by Jim Pingle over 5 years ago

Use correct syntax for /bin/sh for loop in ovpn_auth_verify Fixes #7767

It's not bash.

View differences:

src/usr/local/sbin/ovpn_auth_verify
20 20
# See the License for the specific language governing permissions and
21 21
# limitations under the License.
22 22

  
23

  
24 23
if [ "$1" = "tls" ]; then
25
	for ((check_depth=$3; check_depth>=0; check_depth--));
24
	for check_depth in $(/usr/bin/seq ${3} -1 0)
26 25
	do
27 26
		eval serial="\$tls_serial_${check_depth}"
28 27
		RESULT=$(/usr/local/sbin/fcgicli -f /etc/inc/openvpn.tls-verify.php -d "servercn=$2&depth=$3&certdepth=$4&certsubject=$5&serial=$serial&config=$config")

Also available in: Unified diff