RustyDust / ovpn-to-apc

Convert OpenVPN profiles to an APC file that can be imported into a Sophos/Astaro UTM
14 stars 6 forks source link

Few Errors #3

Open brookesy2 opened 8 years ago

brookesy2 commented 8 years ago

ovpn-to-apc.sh: 245: [: : unexpected operator and cat: : No such file or directory

Seems odd as cat definitely is there. Debian machine. Will try CentOS.

Any thoughts?

Edit: definitely no better on CentOS

ovpn-to-apc.sh: line 285: bc: command not found ovpn-to-apc.sh: line 287: printf: missing hex digit for \x

OSX next!

Edit 2: Made some progress, down to:

ovpn-to-apc.sh: 245: [: unexpected operator

ovpn-to-apc.sh: 113: ovpn-to-apc.sh: Bad substitution

zyv commented 7 years ago

You should run the script with bash: /bin/bash, and not /bin/sh (on Debian alias to dash, which is why you get errors).